Currently when you add the push notification feature to the plugin the user is prompted immediately on app start to enable push notifications. It would be nice if we could defer that request to a later time. Specifically, when a requestNotificationPermission method is called.
In my case I would like to ask the user for this permission during the on-boarding process in my application at the appropriate time.
Hey Shawn,
I guess you've added the notification handlers to init, right? That's what triggers the prompt.
You can remove them there and use the separate notification handler functions instead to delay the appearance of the prompt.
Does that help?
hey @EddyVerbruggen
I am having the same issue. It triggers the permission dialog automatically after loading the page without calling it. I want to call it on after a certain condition. It was working properly. After IOS 12.2 update it started this behaviour. And It is not added inside init.
Most helpful comment
Hey Shawn,
I guess you've added the notification handlers to
init, right? That's what triggers the prompt.You can remove them there and use the separate notification handler functions instead to delay the appearance of the prompt.
Does that help?