Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[firebase-messaging ] [web] - getToken() prompts notification permission in web #16817

Closed
1 task done
bf-vs opened this issue Dec 4, 2024 · 3 comments
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

Comments

@bf-vs
Copy link

bf-vs commented Dec 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

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

  • On a web app, ensure that notification permissions are not granted.
  • Call getToken().
  • Observe that a permission dialog appears.

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

@bf-vs bf-vs added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Dec 4, 2024
@SelaseKay SelaseKay added plugin: in_app_messaging platform: web Issues / PRs which are specifically for web. labels Dec 4, 2024
@SelaseKay
Copy link
Contributor

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?

@SelaseKay SelaseKay added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Dec 4, 2024
@google-oss-bot google-oss-bot added the Stale Issue with no recent activity label Dec 13, 2024
@google-oss-bot
Copy link

Hey @bf-vs. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@bf-vs if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants