当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - Hide, do not display remote notification from code (swift)

问题描述:

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?

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 for help.

分享给朋友:
您可能感兴趣的文章:
随机阅读: