[firebase-messaging ] [web] - getToken() prompts notification permission in web #16817
Closed
1 task done
Labels
blocked: customer-response
Waiting for customer response, e.g. more information was requested.
closed-by-bot
platform: web
Issues / PRs which are specifically for web.
plugin: in_app_messaging
Stale
Issue with no recent activity
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
In-App Messaging
Which platforms are affected?
Web
Description
The current behavior of
getToken()
on web prompts the user with a permission dialog if notification permissions have not already been granted.In comparison, the behavior on mobile platforms is already ideal, as
getToken()
operates silently regardless of the user's notification permission status. It returns null if the permission is not given.Reproducing the issue
getToken()
.Firebase Core version
3.8.0
Flutter Version
3.24.5
Relevant Log Output
No response
Flutter dependencies
No response
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: