Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MaxFreud

macrumors newbie
Original poster
Jan 5, 2011
22
0
Hello boys and girls.

I'm writing a timer app that is supposed to send the user a notification every X minutes, where X is adjustable by the user.
I am using UILocalNotifications to achieve this, and it seems to be working fine except under one scenario, which has consumed the last 3 hours of my time:
If I lock the phone, and ignore several of the notifications, when I finally do reply to one of the notifications, I will be faced with one pop up message for every notification that I ignored.
For example, I lock the phone while the timer is running. It gives me a notification in 1 minute, I ignore it. Another minute, another notification. I ignore that, too. On the third notification, I slide-to-unlock the phone, then I get 2 extra pop ups for the messages that I ignored.

I've tried UIApplication's cancelLocalNotification: method, to no avail. So I was wondering if there is a way to remove a backlog of such pop up messages. If not, does anyone have any suggestions for this situation?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.