Skip to content

collapse Key is not getting changed, I'm sending payload with different collapseKey but it's not changin in client side #2274

@atultiwaree

Description

@atultiwaree
const message = {
  token: "apk_token",
  notification: {
    // body: "This is an FCM notification that displays an image!",
    title: "FCM Notification",
  },
  android: {
    collapseKey: "123",
    priority: "normal",
    restrictedPackageName: "com.newnot",
    data: { name: "pathu" },
  },
};

admin
  .messaging()
  .send(message)
  .then((response) => {
    console.log("Successfully sent message:", response);
  })
  .catch((error) => {
    console.log("Error sending message:", error);
  });

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions