How to clear preference iOS push notifications for my application?

EndyVelvet picture EndyVelvet · Mar 31, 2012 · Viewed 8.8k times · Source

Hello When the application is installed, it asks the user for permission to send push notifications. I'm testing my application. But after removing it from the device and then install it no longer asks for permission. How do I remove these settings so that it once again asked for permission?

I need it to test server push notifications.

Answer

J S Rodrigues picture J S Rodrigues · Apr 1, 2012

Please try using UIApplication's - (void)unregisterForRemoteNotifications method.