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

给你一囗甜甜゛ 提交于 2019-12-13 04:09:35

问题


is it possible to do not display or even cancel remote notification after receive it on device from code?

Regards, Radek


回答1:


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.



来源:https://stackoverflow.com/questions/32432628/hide-do-not-display-remote-notification-from-code-swift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!