In My App I am using firebase push notification. Problem is when user connected to internet after long time they will receive lot of notifications as individual notification. Is it Possible to Receive Notification like whatsapp(You have 10 New Notification). If user receives more than 1 notification at a time means we need to make it as Group or Bundle notification.
Update: apns-collapse-id
is already available for FCM v1:
FCM provides a specific set of delivery options for messages sent to Android devices, and allows for similar options on iOS and web. For example, "collapsible" message behavior is supported on Android via FCM's collapse_key, on iOS via
apns-collapse-id
, and on JavaScript/Web via Topic. For details, see descriptions in this section and related reference documentation
In order to bundle notifications in iOS, you'll have to specify a thread-id
:
Provide this key with a string value that represents the app-specific identifier for grouping notifications. The system groups notifications with the same thread identifier together in Notification Center and other system interfaces. For local notifications, this key corresponds to the threadIdentifier property of the UNNotificationContent object.
However, there is currently no parameter counterpart for thread-id
in FCM. What you could try and do is make use of a data
message payload and specify the thread-id
as a custom key-value pair.
Some possibly helpful posts:
thread_id
is a custom parameter (pretty much anything you add in the data
payload is a custom key-value pair). Just adding it in your payload doesn't mean that the client would handle it automatically. You have to handle it on your own. –
Spessartite thread_id
, and You have to handle it on your own
is very unclear. I appreciate if you could elaborate on that. Is this even possible with FCM or not, and if so, how would you handle it on your own? –
Kalmia © 2022 - 2024 — McMap. All rights reserved.