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]: Detecting Permission Prompt User Interactions #2067

Closed
1 task done
bundleberk opened this issue Apr 26, 2024 · 1 comment
Closed
1 task done

[question]: Detecting Permission Prompt User Interactions #2067

bundleberk opened this issue Apr 26, 2024 · 1 comment

Comments

@bundleberk
Copy link

bundleberk commented Apr 26, 2024

How can we help?

How do I detect when the user clicks "don't allow" from the native notification permission popup that i trigger with OneSignal.Notifications.requestPermission() method?
There is no callback in the method itself, also IPermissionObserver's onNotificationPermissionChange method catches it only when it is true because the permission value is false as default and when the user clicks "don't allow" it is false again so callback does not trigger when the value is the same.

I am using OneSignal 5.1.8 on Android.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@dabitdev
Copy link

@bundleberk how did you fix this issue?

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

2 participants