简体   繁体   English

在启动时发送的所有本地通知

[英]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? 这是iOS 4的错误,还是我忘了做某事?

Actually it was user error! 实际上是用户错误! Somebody had set that device's date to something ridiculous and I failed to notice. 有人将该设备的日期设置为可笑的日期,但我没有注意到。 Relentless QA testers ftw. 不懈的QA测试人员。

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. 确保fireDate正确。 That should be the only problem. 那应该是唯一的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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