Sunday, July 29, 2018

How to remove new Notifications from banner?

Leave a Comment

Is there any way to handle remote notification payloads before they’re delivered and display in notification centre?

1 Answers

Answers 1

With push notifications of default type there is no way to filter out notifications if the app is not in foreground.

The possible solution to this is to use VoIP push notifications in conjunction with PushKit.

VoIP pushes are always waking up the application, however they are not presented to the user and don't modify app badge value, so it's up to the developer to show a local notification upon the received VoIP push and to deal with app badge.

There is a technique with additional silent push that for example Facebook is using, to delete notification on iOS device when the message has been read on desktop web site. It's described here: https://www.pushwoosh.com/docs/deletable-ios-push

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment