iPhone 本地通知循环:设备显示通知警报后重置 fireDate
在研究了苹果的“深度本地和推送通知”以及大量论坛帖子之后, 我仍然无法弄清楚这一点:
我的应用程序在启动时在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不能。
您可以使用定期通知或提前安排最多 64 个本地通知,并根据需要取消/重新安排。
You cannot.
You can use recurring notification or schedule up to 64 for local notifications in advance and cancel/reschedule as needed.