-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
On android checkNotifications and requestNotifications result in denied #382
Comments
I recommend you integrate react-native-permissions and check or request with it. Maybe the permission is actually blocked meaning the pop-up will not open again, I know that module handles that case and (more importantly) ios13 cases as well |
This is indeed a small bug. As it's impossible to request notifications permission on Android, the returned value should be I will fix this soon 🙂 |
I read in a few other issues that notification permission is not requestable on android? On ios this check is fine if not requested I get RESULTS.DENIED if denied I get RESULTS.BLOCKED. Sorry @zoontek I didn't see your replay. So it will not be possible to request permission but BLOCKED will work? |
On android 8 when I install app, permission for notifications is given already.
I disable it in settings and I have check:
checkNotifications().then(({status, settings}) => { // this return status 'denied'
on denied I show screen with following event:
But this code do nothing.
Permission dialog not displayed.
Value of
permitted.status
isdenied
.On IOS work fine. This doesn't work on android.
I didn't add
[alert, sound]
as I see comment in documentation that it's only for ios.What is wrong?
The text was updated successfully, but these errors were encountered: