开发者

All localnotifications sent on bootup

开发者 https://www.devze.com 2023-04-03 05:22 出处:网络
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百

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

精彩评论

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