我已安排重复本地通知,比方说,上午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.
更多推荐
取消重复本地通知的单次出现
发布评论