I got a requirement to Prompt an Alert for Push Notification, when user install the App. As the user installed the application an Apple "PROMPT ALERT" Window pops up, informing the user that installed App uses Push Notifications and asks the user would like to proceed to use the app with their Push Notifications set to "ON".
If user selects allow in the alert box, Push Notification need to be Turned on automatically in the settings.(i.e we have to achieve it by coding.)
I am not having any idea how to achieve it. Please suggest at least the way of approach.
it is automatically done by OS when detect that your app need to receive push notifications
Thanks Danny you are the Savior once again..
1) I have already got the Push Notification functionality in my code, but i am not getting the popup to turn on Notification settings automatically. i am checking in simulator. what will be the reason? what is the method that must be implemented to make this functionality work?
2) Does the popup alert works only when the app installed? if user does not allow first time, it wont appear again
1) push notification will not work on simulator, so no popup is shown in simulator
2) yes, when user will start the first time, will see popup. if user doesn't allow, you can't do nothing for show it again.
1) I have already got the Push Notification functionality in my code, but i am not getting the popup to turn on Notification settings automatically. i am checking in simulator. what will be the reason? what is the method that must be implemented to make this functionality work?
2) Does the popup alert works only when the app installed? if user does not allow first time, it wont appear again
APNS works only on real device, otherwise return error on didFaildToRegisterForRemoteNotificationsWithError
1) push notification will not work on simulator, so no popup is shown in simulator
2) yes, when user will start the first time, will see popup. if user doesn't allow, you can't do nothing for show it again.
1) what is the method that must be implemented to make this functionality work?
even for the first time?
2) does uninstall and installing again make it work on the device?
1) Make working your push notifications and you don't need anyother thing to have this ******* popup
2) i think that also reinstalling the app, the setting remain saved on iOS.
There is a setting for push notification in iPhone/Pad/Pod settings page.. You can configure which applications should receive push notifications and which are should not.