When enabling push notifications for a mobile app the device is registered with the PNS when first launched. You can see the device in the devices collection. When you uninstall the mobile app shouldn't this device be unregistered automatically? If not then you have a device in the devices collection that will never be deleted. Also, if you install the app a second time the deviceID is different so you will have another entry for the same device.
Good point and that sounds logical to me. I will pass this questions on to the engineering team.
Thanks
-Shelley
When enabling push notifications for a mobile app the device is registered with the PNS when first launched. You can see the device in the devices collection. When you uninstall the mobile app shouldn't this device be unregistered automatically? If not then you have a device in the devices collection that will never be deleted. Also, if you install the app a second time the deviceID is different so you will have another entry for the same device.
Flag this post as spam/abuse.
I would think so...Thanks.
Hello,
A couple of articles at Stack Overflow point to some information at Apple's developer site:
- stackoverflow.com/.../how-to-fire-an-event-on-uninstallation-of-an-iphone-app
- stackoverflow.com/.../clarification-on-apple-apns
Apple's developer site:
- developer.apple.com/.../ApplePushService.html
- developer.apple.com/.../CommunicatingWIthAPS.html
It seems that because there is no event on uninstall of an app, for PN, the feedback service can be used to check for failed notifications and then use this information to unregister the device.
Perhaps, this could be an enhancement to the PNS.
Thanks.
Lets not forget Android as well.