Closed ezlo-anatoliiv closed 4 years ago
I don’t think you can actually request permission if the user disabled them manually. But what we could do is returning the result of “hasPermission” instead. Would that help?
You need is checking actual state for status of notifications and return true/false like it method works for iOS. It will be behaviour when user already used notifications and want re-enable again.
Totally we have two behaviours for this function, when user at first is enabling notifications and we call this method and is showing this alert and it's fine.
And second case when you had have disabled notifications and want re-enable. For this case you need check system settings for status of notifications and the best way should be send the user to settings like this for manual enabling
Yes that’s what I proposed, except for the bit where you redirect the user to the settings. Did you find a good way to implement that?
Actually no, for now you can check only actual state for settings and return true/false
like for iOS. It will fix current bug for this method.
Behaviour with redirect it's more right and it can be implemented like next feature
Sure, let me fix that for you later today.
Thanks very much
Please update to 4.1.1.
Thanks
Can't enable by method requestPermission notifications on android. It is returning always
true
even the notifications are disabled.