Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS UILocalNotifications live after my app has been deleted...how to deal with these notifications?

I was wondering how to deal with UILocalNotifications that were created using my app but the app then got deleted. Lets say that after creating a few notifications, the user decides to delete the app, but i've noticed that even though the app is deleted the notifications lived and they still fire in the correct time, but this doesn't make sense to me since the app is not existant in the phone anymore.

I understand how this is possible, but i would like to know if there a way to delete such notifications when the user decides to get rid of my app?

And does this happen as well if the app is being updated?

Thanks.

like image 369
S.H. Avatar asked Apr 24 '12 16:04

S.H.


1 Answers

Another way is to use APNS (remote notifications) instead of local notifications. This way, once your App was removed, pushed notifications will not get to the device anymore , nor to the user's attention.

At this stage you can be aware of the App's removal (using APNS feedback service) and cease your sending mechanism for that user (his push token..)

like image 138
Wiz Avatar answered Oct 26 '22 00:10

Wiz