How can I prompt the push notification dialog later?
When coding native, as soon as you call registerForRemoteNotificationTypes, iOS will bring up a prompt to the user to confirm they wish to enable push notifications. In Corona I can’t figure out how to do this, the prompt shows up as the first thing when the app starts.
Why would I want to do this later? Because:
-
It should be determined if the device is connected to the internet before prompting for permission so it doesn’t fail when connecting to APNS.
-
I want to introduce push notification after explaining to the user why he should accept it.
Any solutions/thoughts?