Hide, do not display remote notification from code

2019-09-08 01:16发布

问题:

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.