promptForPushNotification static method

Future<void> promptForPushNotification(
  1. bool fallbackToSettings
)

Directly calls OS hard dialog for requesting push permission.

Implementation

static Future<void> promptForPushNotification(bool fallbackToSettings) async {
  return await _dartToNativeMethodChannel.invokeMethod('promptForPushNotification', fallbackToSettings);
}