Skip to content

✨ [firebase_messaging] check permission status #17390

@lukepighetti

Description

@lukepighetti
Contributor

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

Activity

changed the title [-]🐛 [firebase_messaging] check permission status[/-] [+]✨ [firebase_messaging] check permission status[/+] on May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lukepighetti@SelaseKay

        Issue actions

          ✨ [firebase_messaging] check permission status · Issue #17390 · firebase/flutterfire