取消重复本地通知的单次出现

编程入门 行业动态 更新时间:2024-10-27 19:24:35
本文介绍了取消重复本地通知的单次出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已安排重复本地通知,比方说,上午10点。重复间隔为一周。是否有可能以编程方式取消重复通知的单一事件?例如,早上9点30分,用户点击了复选框并(以编程方式)取消了通知,因此它不会显示在10.00上,但会在下周显示?

I have scheduled repeating local notification for, let's say, 10.00 am. Repeat interval is one week. Is it possible to cancel programatically only single ocurrence of repeating notification? For example, it's 9.30 am, user has tapped checkbox and (programatically) cancelled notification, so it won't be displayed on 10.00, but will be displayed next week?

推荐答案

取消重复本地通知的单次出现是不可能的。在重复模式下安排通知时,即使重复通知,也只创建一个通知。它算作一个。所以你能做的就是用户点击开关取消该通知并重新安排,使其从下周10点开始。如果您需要任何帮助,我会帮助您。先尝试一下。

It is not possible to cancel single occurrence of a repeating local notification. When you are scheduling a notification in repeating mode, you are creating one and only one notification even though it repeats. It counted as one. So what you can do is if the user tapped the switch cancel that notification and reschedule it in such a way that it will start from next week 10 am. If you need any help on that i will help you. Give a try first.

更多推荐

取消重复本地通知的单次出现

本文发布于:2023-11-27 02:49:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636253.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:通知

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!