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
On a web app, ensure that notification permissions are not granted.
Hi @bf-vs, thanks for the report. However, I'm not entirely sure about your concern. Could you please clarify what you believe the expected behavior should be on the web?
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