0

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

Regards, Radek

Radek
  • 33
  • 5
  • 1
    possible duplicate of [iOS application: how to clear notifications?](http://stackoverflow.com/questions/8682051/ios-application-how-to-clear-notifications) – Anbu.Karthik Sep 07 '15 at 06:51
  • I don't mean all notification, I mean particle - depending on notification content. – Radek Sep 07 '15 at 07:01
  • then check your payload contains values are same remove the particular else do nothing – Anbu.Karthik Sep 07 '15 at 07:05
  • Be specific - Why would you send notifications if you want to cancel it? – Rohit Kumar Sep 07 '15 at 09:08
  • Some notification can be marked by user as a SPAM but not all - user decides. Yes there exists some workarounds but my question is simple - is it possible or not. – Radek Sep 07 '15 at 10:25

1 Answers1

0

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.

Radek
  • 33
  • 5