开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜