I am using push notification in my app. User token gets properly registered and is sent to server. Notification are also sent by server and recieved on device as expected.
The problem occurs when user uninstalls the app. iOS does not provide any option to handle uninstall event. On top of that when server send notification to such device token APNS feedback service sends success message. Meaning APNS sends push notifications to uninstalled app.
I have an API to unregister the device on server since no event is triggered I am unable to call it.
Please suggest a way out.