flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

✨ [firebase_messaging] check permission status

Open lukepighetti opened this issue 6 months ago • 0 comments

I don't think it's possible to check current permission status in firebase_messaging. the purpose is to check if the user can be asked to give permission by the operating system so you can decide whether or not to show a permission request.

I should note that you can do this with permission_handler package but I think it's reasonable to expect firebase_messaging to have an opinionated permissions status checking method

also, there is FirebaseMessaging.instance.getNotificationSettings() but it doesn't appear to show if the user can be asked for notification permissions in app or if they need to be sent to app settings

lukepighetti avatar May 27 '25 18:05 lukepighetti