I've encountered an unusual scenario where a user is continuing to receive notifications when my app has been deleted and then reinstalled. The scenario is as follows:
- user installs the app from the appstore
- user logs onto our app and we register them for notifications
- user deletes the app from their device
- user reinstalls the app from the appstore
- user receives a notification even though they have not started the app up yet, logged in, etc
My understanding of the APNs architecture was that once your app is deleted from your device, it is de-registered from APNs by the OS itself. A reinstall of the app would not re-enable notifications until you called "registerForRemoteNotificationTypes" -- so if a note was sent to the device using the old token, APNs would not deliver it since the above method has not been called.
Is that not accurate?