requestIOSLocalNotificationsPermissions function

Future<bool?> requestIOSLocalNotificationsPermissions({
  1. required FlutterLocalNotificationsPlugin localNotificationsPlugin,
})

requestIOSLocalNotificationsPermissions request local notifications permissions for iOS

Implementation

Future<bool?> requestIOSLocalNotificationsPermissions(
    {required FlutterLocalNotificationsPlugin localNotificationsPlugin}) async {
  return localNotificationsPlugin
      .resolvePlatformSpecificImplementation<
          IOSFlutterLocalNotificationsPlugin>()
      ?.requestPermissions(
        alert: true,
        badge: true,
        sound: true,
      );
}