Push Notification Status should be reset after deleting an app in development

Originator:dnl.stock
Number:rdar://17569811 Date Originated:07/06/2014
Status:Open Resolved:
Product:iOS SDK Product Version:7.1.2
Classification:Enhancement Reproducible:Always
 
Summary:
In order to improve testing the registration process with the developer's server for Push Notifications it should be possible to trigger the registration easily in Development builds. Currently the documentation at https://developer.apple.com/library/ios/technotes/tn2265/_index.html reccomends to either leave the app uninstalled for a day or set the time ahead for a day and reboot the device. This process can be very cumbersome.

Steps to Reproduce:
1. Install and open an app that registers for Push Notifications for the first time from Xcode
2. The alert asking for permission for Push Notifications will open at the intended time
3. Delete that app
4. Reinstall the app from Xcode
5. The permission alert will not appear

Expected Results:
The Push Notification Status should be reset and and the permission alert should pop up again, executing - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken on the AppDelegate

Actual Results:
The permission alert will not appear and there is no way to trigger 
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken

Version:
iOS 7.1.2

Notes:
I understand that for users who reinstall an app it is better that the notification settings persist so if they previously allowed notifications for an app they will not be asked again after reinstalling, so this improvement should only be made for apps built in Development

It would also be possible to have another option to trigger 
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken

Configuration:
iPhone 5

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!