gpt4 book ai didi

ios - 如何在 Objective-C 中重启 iPhone 时捕获事件?

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:58:01 27 4
gpt4 key购买 nike

我想做的是设置本地通知。代码按预期工作,但如果手机关机怎么办?

阅读关于 UILocalNotification when iPhone switched off 的一些文章后我需要重新创建已发出的每个本地通知,因此我会查看此 How to check if iOS device has been rebooted since launch , 和 How can I detect whether the iphone has been rebooted since last time app started ,仍然无法达到我的目标。

我想知道的是:有没有在iPhone重启时启动的事件?

最佳答案

你误读了你的来源。

手机关机时不会触发本地通知(正常关机)。但是,如果您在下午 3 点收到通知,请在下午 2 点重启手机,然后通知将正常触发。

关于ios - 如何在 Objective-C 中重启 iPhone 时捕获事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32043336/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com