private void requestPermission(CallbackContext callbackContext) {
        // Permission is granted.
        if (NotificationManagerCompat.from(getContext()).areNotificationsEnabled()) {
            successBoolean(callbackContext, true);
            return;
        }

        // If Notifications are disabled and POST_NOTIFICATIONS runtime permission is not supported
        // we can't ask the user to enable notifications, so we return false.
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
            successBoolean(callbackContext, false);
            return;
        }

        // Store the callback context for later use in onRequestPermissionResult
        // and get a random request code to identify the context later
        int randomRequestCode = CallbackContextUtil.storeContext(callbackContext);

        // Request the runtime permission.
        cordova.requestPermission(this, randomRequestCode, Manifest.permission.POST_NOTIFICATIONS);
    }
Request permission for local notifications.
@param callbackContext The callback context used when calling back into JavaScript.
src/android/LocalNotification.java