Closed DuncanKelbie closed 4 years ago
Hi @DuncanKelbie
I've tested the app after the updated version.
When I check for permission status it returns PermissionStatus.provisional
and when I request for permission app doesn't show any popup and returns PermissionStatus.unknown
. I've tested on a simulator.
@Vanethos Do you know about this issue? or it does not work on the simulator.
@praveenbbhati You're right, if the current status is PermissionStatus.provisional
then no popup is shown when you request permission. This will happen whether on simulator or device. Needs fixing and thanks for pointing that out
Created a new issue #29
@Vanethos @praveenbbhati Created pull request #30
On iOS if authorizationStatus value is
provisional
then the call togetNotificationPermissionStatus()
never returns and my app is stuck waiting forever. Ideally I would like thePermissionStatus
enum to be extended to includeprovisional
so I can run different logic in that scenario.It would be great if
getNotificationPermissionStatus()
always returns even if iOS adds more possible authorizationStatus values in future so that my app does not get stuck waiting forever.