requestIOSLocalNotificationsPermissions function
Future<bool?>
requestIOSLocalNotificationsPermissions({
- 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,
);
}