title: Reset push notification permission setting in ios5
body: <p>I am developing an app that uses push notifications, and testing on a device with iOS 5.1.1.  I would like to test the scenario where the user is prompted about push notifications during the app's first run.  The dialog appears the first time I call registerForRemoteNotificationTypes, but never appears again, even if the app is re-installed from scratch.  How can I clear the setting so that the dialog will appear again?</p>
  
  <p>The same question was <a href="https://stackoverflow.com/questions/2438400/reset-push-notification-settings-for-app">posted before</a>, but the answers do not work for iOS 5 or later, as noted in the comments there.</p>
  
  <p>Apple's <a href="http://developer.apple.com/library/ios/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG42" rel="nofollow noreferrer">documentation</a> says to uninstall the app and mess with the clock to make it look like the app was uninstalled for a day, but this does not work on iOS5.</p>
  
  <p>Another answer suggested running General -> Reset -> Erase All Content And Settings - I tried this, but it froze my device and I ended up having to power-cycle it.  In any case, this is a heavy-handed solution that is not practical for testing.</p>
  
  <p>Another answer suggested removing your app's entry from /private/var/mobile/Library/RemoteNotification/Clients.plist, but this file does not exist on iOS5.</p>
  
  <p>Is there a way to accomplish this on iOS5?</p>