I'm trying to implement APNS notification where i want to maintain single latest notification for all my incoming notification.
I'm using apns-collapse-id
which should be supported by FCM as described here
However when i send multiple notification with single collapse-id the end use is still getting multiple notification
Below is the receiver end payload, which has "gcm.notification.apns-collapse-id"
which i'm guessing is being sent by google.
I'm trying to understand if i need to make any changes to make it work.
Original Sender Payload:
{
"to" : "xyz",
"notification": {
"title" : "title_here",
"body" : "body_here",
},
"data" : {
"message" : "Message_Here"
},
"apns-collapse-id" : "STRING_ID_HERE"
"content_available" : true
}
Receiver side Payload:
{
aps = {
alert = {
body = "body_Here";
title = "title_here";
};
"content-available" = 1;
};
"gcm.message_id" = "0:123456789ae";
"gcm.notification.apns-collapse-id" = STRING_ID_HERE;
"google.c.a.e" = 1;
message = "Message_Here";
}