private void type(JSONArray args, CallbackContext callbackContext) {
        Notification notification = Notification.getFromSharedPreferences(getContext(), args.optInt(0));

        if (notification == null) {
            callbackContext.success("unknown");
            return;
        }

        switch (notification.getType()) {
            case SCHEDULED:
                callbackContext.success("scheduled");
                break;
            case TRIGGERED:
                callbackContext.success("triggered");
                break;
            default:
                callbackContext.success("unknown");
                break;
        }
    }
Get the type of the notification (unknown, scheduled, triggered).
src/android/LocalNotification.java