Reputation: 22099
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.
Upvotes: 3
Views: 1086
Reputation: 163
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.
Upvotes: 1