You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
I'm trying to show a dialog to the user when they don't accept the notifications permission, however the .on("registration") callback is firing even before the user presses one of the two buttons in the dialog. Is there any way to fire a callback when the user presses either of these buttons?
I guess just polling PushNotification.hasPermission() is an option but I'd have to show the dialog even before the user has dismissed the native iOS dialog, and I'd rather only show it after the native iOS dialog is gone.
Is there any way to achieve this functionality?
The text was updated successfully, but these errors were encountered:
Thanks, I'd been looking for a duplicate but 2003 issues is a lot to go through hahah.
I think this one is pretty similar except the register event is only called once for me, not twice. It's just firing before the user has had a chance to accept the permissions. So when I call PushNotification.hasPermission() right after I get the registration event, it gives me {isEnabled: false}
Only after the user accepts it this value returns true, but I don't get a callback when that happens.
So it's a little different from #1438 but similar. I'm not sure if it's worth having it's own issue assigned.
I'm trying to show a dialog to the user when they don't accept the notifications permission, however the .on("registration") callback is firing even before the user presses one of the two buttons in the dialog. Is there any way to fire a callback when the user presses either of these buttons?
I guess just polling
PushNotification.hasPermission()
is an option but I'd have to show the dialog even before the user has dismissed the native iOS dialog, and I'd rather only show it after the native iOS dialog is gone.Is there any way to achieve this functionality?
The text was updated successfully, but these errors were encountered: