Can FCM notification on Android overwrite previous one?
问题 I'm using FCM to send notifications to Android devices. When the app is in background, if I send 10 notifications, the devices will show up 10 entries on the notification bar. I want FCM to make only one entry on notification bar, i.e. the newer one will overwrite old ones. I don't find a key to set this at https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream. Is there a way to do, or it is impossible? Thanks. 回答1: To achieve this, in your notification payload, use the