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

[Question]: how to tell when Onesignal.Notifications.requestPermission() fails? #1198

Open
ggrochow-dh opened this issue Sep 24, 2024 · 0 comments

Comments

@ggrochow-dh
Copy link

How can we help?

Assuming I have blocked browser notification permission for the site I am doing this on.

when calling Onesignal.Notifications.requestPermission() I see an error output in the console, but get 0 feedback from the function call, and im unable to catch the error.

How can I tell when this has failed? I want to be able to instruct the user they have to manually change their browser settings, but it seems like there is no way to get any feedback around this very critical part of this whole process not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant