Prompt Push Notification later (iOS)

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:

  1. 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.

  2. I want to introduce push notification after explaining to the user why he should accept it.

Any solutions/thoughts?

Corona?

I believe it is the permissions in the build settings that initiate the prompt. Not sure if you can bring up that prompt later. 

Corona?

I believe it is the permissions in the build settings that initiate the prompt. Not sure if you can bring up that prompt later. 

I was wondering about this too, maybe the good folk at Corona themselves can shed some light on this?

@martijnreintjes: Did you find a solution on this?

Nope, didn’t research it much either though.

I’m planning this for a future project, so I was just doing some general research into the subject.

I guess it would be possible in the enterprise version, since you can build your own plugins with that. But for now I don’t think there is a solution since Corona makes the call in the config files …

I wasn’t worried about this until I saw my wife decline push messages in a turn based game the other day. I asked her why and she said she wanted to make sure the game was good before turning on push.

I think it would be really nice if we could decide the timing of this. For example to show a message “This is a turn based game, it is important to enable push messages.”, and then pop up the push dialog after user presses OK.

That is exactly the reason I want it implemented like that, I think the conversion would be much better of people adding push

I was wondering about this too, maybe the good folk at Corona themselves can shed some light on this?

@martijnreintjes: Did you find a solution on this?

Nope, didn’t research it much either though.

I’m planning this for a future project, so I was just doing some general research into the subject.

I guess it would be possible in the enterprise version, since you can build your own plugins with that. But for now I don’t think there is a solution since Corona makes the call in the config files …

I wasn’t worried about this until I saw my wife decline push messages in a turn based game the other day. I asked her why and she said she wanted to make sure the game was good before turning on push.

I think it would be really nice if we could decide the timing of this. For example to show a message “This is a turn based game, it is important to enable push messages.”, and then pop up the push dialog after user presses OK.

That is exactly the reason I want it implemented like that, I think the conversion would be much better of people adding push

Are there any updates on this guys? I’m looking to do the same thing… 

Any help is hugely appreciated! :slight_smile:

Maybe we should put it on their feature request tracker?

I added feature request, please vote: http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/5881595-control-the-timing-of-allow-push-notifications-p

Thanks for setting it up! Just voted for it

Are there any updates on this guys? I’m looking to do the same thing… 

Any help is hugely appreciated! :slight_smile: