mercredi 28 janvier 2015

iPhone- ios localnotification with sliding expiration

Can i create a Local notfication in an iphone app with sliding expiration.


My problem statement is that i want to show user a local notification in case the app is terminated by IOS or by an exception.


So to achieve this i am trying to do the following


Create a thread that runs every 5 seconds. This thread first cancels all scheduled notification and then schedules a notification with currenttime +10 seconds.


This way if the app gets killed then the user will be notified within 10 seconds that the app is terminated.


Please advise


Thanks,Amit




Aucun commentaire:

Enregistrer un commentaire