All localnotifications sent on bootup
In my app I set several local notifications. Then I force-restart the device and when it boots back up every notification fires even if the time isn't up. Is this an iOS 4 bug or am I forget开发者_C百科ting to do something?
There is no way the system fires the notifications if the time is not up yet. You may have set the notification on wrong dates, or there may be a timezone issue. Make sure the fireDate is correct. That should be the only problem.
Actually it was user error! Somebody had set that device's date to something ridiculous and I failed to notice. Relentless QA testers ftw.
精彩评论