Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to know when an app is deleted in iOS?

my problem is this:

I have scheduled some UILocalNotifications on an iOS app, the problem is that if I delete the app without deleting the objects associated with the notifications (and consequently removing the notifications from the scheduledNotifications array) the notifications still fire.

Although I have not experienced them actually firing (they are set to repeat within a week's interval) I have evidence of this since I NSLog the scheduledNotifications array at application launch, which even after deleting the app and reinstalling it (with the entities of the data model gone), still shows some scheduled notifications.

I've searched the UIApplication and the UIApplicationDelegate reference in Apple's reference library but I found no method to know if the app is being deleted, if there is I would just write

[[UIApplication sharedApplication] cancelAllLocalNotifications];

in said method.

So, is there a way for knowing this?

Thank you in advance, your help is very much appreciated.

like image 787
arturovm Avatar asked Feb 15 '11 01:02

arturovm


People also ask

Can you see when apps were deleted?

To filter my recently deleted applications, tap on Name in the upper right. Tap Recently Added. This will filter the most recently deleted applications associated with your Google account. To add the app back to your device, tap the box to the right of the app and tap the Download icon in the upper right-hand corner.

How do you make sure an app is completely deleted from iPhone?

Remove an app from the Home Screen: Touch and hold the app on the Home Screen, tap Remove App, then tap Remove from Home Screen to keep it in App Library, or tap Delete App to delete it from iPhone. Delete an app from App Library and Home Screen: Touch and hold the app in App Library, tap Delete App, then tap Delete.

How do you know my app is uninstalled from the device iOS?

How are App Uninstalls detected? You can detect app uninstalls by sending 'silent' push notifications. Silent push notifications are those notifications that aren't rendered on the user's device. You could send a silent push notification daily to all the devices with your app to track uninstalls.


1 Answers

This was bug in 4.0 that the local notification was repeated even if the user has deleted the app, but at least that bug was fixed by Apple in later release.

like image 92
KingofBliss Avatar answered Oct 11 '22 12:10

KingofBliss