iPhone 本地通知循环:设备显示通知警报后重置 fireDate

发布于 2024-10-29 08:28:13 字数 469 浏览 7 评论 0原文

在研究了苹果的“深度本地和推送通知”以及大量论坛帖子之后, 我仍然无法弄清楚这一点:

  • 我的应用程序在启动时在 didFinishLaunchingWithOptions 中安排了 10 英寸的通知。

  • 如果应用程序保持打开状态,则在 10 英寸后调用 didReceiveLocalNotification,我可以在那里启动另一个通知。很好。

  • 如果应用程序在后台运行,则会弹出系统警报。

    • 如果我单击“查看”,也会调用 didReceiveLocalNotification,我可以安排下一个通知。好的。

    • 如果我单击“关闭”,则到目前为止没有任何调用,并且我无法更新通知。 坏的。

我想知道如何从系统的本地通知警报弹出窗口中捕获“关闭”按钮事件。

有什么想法吗? TIA 戴夫

after studying apple's "Local and Push Notifications in Depth" and loads of forum postings,
i still cannot figure this out:

  • my application schedules a notification in 10" at startup in didFinishLaunchingWithOptions.

  • if the app stays open, didReceiveLocalNotification is called after 10" and i can start another notification there. good.

  • if the app is in the background, the system alert pops up.

    • if i click "View", didReceiveLocalNotification is also called and i can schedule the next notification. good.

    • if i click "Close", nothing is called so far and i cannot renew the notification.
      BAD.

i wonder, how i can capture the Close button event from the system's local notification alert popup.

any ideas?
TIA
dave

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吖咩 2024-11-05 08:28:14

你不能。
您可以使用定期通知或提前安排最多 64 个本地通知,并根据需要取消/重新安排。

You cannot.
You can use recurring notification or schedule up to 64 for local notifications in advance and cancel/reschedule as needed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文