Lacrifilm Lacrifilm - 2 years ago 86
Swift Question

Filter notifications that should warn is possible?

I have an app that receive two types of notifications from my webserver (with APNS): Important Notifications and Normal Notifications.

The main difference between these two types of notifications is that

Important Notifications
should appear in the notifications bar on device (when the app is on background mode) and
normal notification

Normal Notifications
is only for update some information inside my app and it is not necessary to warn users when the app is in background mode. knowing that, this kind of thing is possible?

Answer Source

Your backend service has to send the non-important push notification with


in its payload dictionary. Then the user won't see the push notification on the home screen.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download