Friday, June 28, 2024
HomeiOS DevelopmentFlutter permissions points (iOs) - Stack Overflow

Flutter permissions points (iOs) – Stack Overflow


I’m growing an App with notifications and I’ve an issue with notifications permissions in iOS.

FirebaseMessaging messaging = FirebaseMessaging.occasion;
    NotificationSettings notificationSettings = await messaging.requestPermission(
      alert: true,
      announcement: false,
      badge: true,
      carPlay: false,
      criticalAlert: false,
      provisional: false,
      sound: true,
    );
    var standing = await Permission.notification.standing;
    if (standing.isGranted) {
      print('Permission is granted');
    } else if (standing.isDenied) {
      print('Permission is denied');
    }

Once I request the permission for notifications with FirebaseMessaging and settle for, once I examine the permission in permission_handler it says that it’s denied, once I actually accepted it from FirebaseMessaging.

It might be anticipated that when accepting the FirebaseMessaging permission, it might seem in PermissionHandeler as accepted, however this isn’t the case.
Have you learnt why?
I take advantage of Flutter 3.22.2, permission_handler: ^11.3.1 and firebase_messaging: ^15.0.2

Thanks prematurely



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments