Updating
GameTimers app for iOS 4, we're adding UILocalNotification for each of up to 30 activated countdown timers. Two locals are set, one when the timer reaches its target time, and then a second when the timer approaches the "grace period" (in cafe world lingo, it's just before the food spoils).
Everything is working as expected, and when a timer is canceled by the user, I step through all existing timer notifications, canceling those which have the same ID as the timer canceled by the user (calling cancelLocalNotification:timerID). Going back to confirm, I log that only the appropriate timers' local notifications are left (example below).
However, the "expiration" timer notification of the canceled item, one which hasn't gone off yet following a grace period, somehow continues to triggers.
Any ideas?
Code:
2010-07-06 13:17:16.538 GameTimers[1453:307] Timer ID: 24 2010-07-06 15:17:07 -0400 The Timer 'T1' Is Ready!
2010-07-06 13:17:16.562 GameTimers[1453:307] Timer ID: 24 2010-07-06 17:07:07 -0400 The Timer 'T1' Will Expire Soon!