requestNotificationPermissions method

Future<PermissionStatus> requestNotificationPermissions (
  1. {NotificationSettingsIos iosSettings: const NotificationSettingsIos(),
  2. bool openSettings: true}
)

Implementation

static Future<PermissionStatus> requestNotificationPermissions(
    {NotificationSettingsIos iosSettings = const NotificationSettingsIos(),
    bool openSettings = true}) async {
  final map = iosSettings.toMap();
  map["openSettings"] = openSettings;
  String status =
      await _channel.invokeMethod('requestNotificationPermissions', map);
  return _getPermissionStatus(status);
}