On Android, when supplying the same id in two calls to NotificationManager.notify, only one notification will be shown in the notification drawer.
On BlackBerry, when supplying the same tag in two calls to Notification(), only one notification will be shown in the message hub.
What is the equivalent functionality on iOS?
We need to deliver certain push notifications multiple times to make the phone ring and vibrate multiple times, but we only want to have a single message visible on the lock screen.
The method on iOS is very similar in concept to Android and BlackBerry. From Apple's APNs overview:
To allow the coalescing of similar notifications, you can include a collapse identifier with the notification request.
Notifications with the same identifier will be collapsed on the receiving device.
https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html#//apple_ref/doc/uid/TP40008194-CH8-SW1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With