Skip to content

On android checkNotifications and requestNotifications result in denied #382

@vvusts

Description

@vvusts

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:

let permitted = await requestNotifications();
   if (permitted.status === 'granted') {

But this code do nothing.
Permission dialog not displayed.
Value of permitted.status is denied.
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions