隐藏,不显示从code(SWIFT)远程通知 [英] Hide, do not display remote notification from code (swift)
本文介绍了隐藏,不显示从code(SWIFT)远程通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是有可能不显示或即使取消远程通知从code接收它的设备?
is it possible to do not display or even cancel remote notification after receive it on device from code?
问候,
拉德克·
Regards, Radek
推荐答案
所以我会从我的服务器发送无声推送通知,然后根据负载我会告诉或声音不是本地通知警报。
你觉得呢?
So I will send silent push notification from my server and then based on payload I will show or not local notification alert with sound. What do you think?
我知道如何清除现有的通知,但我的意思是之前此通知出现在UI取消。也许我不是我的问题,以便precise。
I know how to clear existing notifications but I mean cancel before this notification appears in UI. Maybe I was not so precise in my question.
的Tx寻求帮助。
这篇关于隐藏,不显示从code(SWIFT)远程通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文