简体   繁体   中英

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 forgetting to do something?

Actually it was user error! Somebody had set that device's date to something ridiculous and I failed to notice. Relentless QA testers ftw.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM