1

I have a calendar-like iOS app which needs to raise alert everyday at specific pre-calculated times. Is there anyway to detect if a notification alert displayed and set next schedule ( without pressing OK button and entering app)?

In other language : Is it possible to detect if "close" button of UIAlertView of UILocalNotification pressed?

Thanks

Karan Alangat
  • 2,154
  • 4
  • 25
  • 56
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210

2 Answers2

1

No you can't re-fire another notification based on another response. Although, you can simply create multiple notifications for all the rest of the days you wish using a NSCalendarUnit. The only drawback is you are limited to 64 total notifications.

This answer shows a trick to create a que of notifications to get passed that limit if you want to check it out.

Community
  • 1
  • 1
Mark McCorkle
  • 9,349
  • 2
  • 32
  • 42
0

NO. You cannot do anything with out entering into your app. There is no way to detect the cancel button pressed. If you cancel the notification the alert will just disappear. If you given the action button notification will launch the app.

Anil Varghese
  • 42,757
  • 9
  • 93
  • 110