Postpone local notification

I am working on an alarm, and for this I am using local notification. Now I want to add snooze functionality to my alarm. I searched on Google and found that the iPhone does not support this functionality.

But is there any other way to do this?

+7
source share
2 answers

AFAIK, you cannot add custom behavior when a notification window appears. BUT ... You can try: after the user clicks “View” and the application is launched using UILocalNotification, you can open the modal view with the huge “Snooze” button and another (smaller) “Open” button. And if the user clicks Snooze, you simply plan another local notification and close the application.

How about this?


PS: A couple of days ago I first worked with these local notifications. I had to develop a class that can be used everywhere. The repeat method will be cool! I will write you again if I get a better solution. But please tell me (and others) in this forum if you find a good solution.

+5
source

All Articles