Glossary · Delivery
Collapse key
A collapse key is an identifier that tells the push service, and the device, that a newer message replaces an older one with the same key. While a device is offline only the latest one is kept, and on screen the new notification takes the old one's place.
Also called collapse ID, notification tag; on the web, the Topic header
Replace, don't stack
Some messages are only useful in their latest version: a live score, the number of unread lessons, a delivery's status. Send each with the same collapse key and two things happen. The push service keeps only the newest while the device can't be reached, and when it's delivered, the device replaces the earlier notification instead of adding another.
- 8:00 “1 new lesson”
- 8:20 “2 new lessons”
- 8:45 “3 new lessons”
- phone offline until 9:10
Without a collapse key
Lingora 9:10
Lingora
3 new lessons
Lingora 9:10
Lingora
2 new lessons
Lingora 9:10
Lingora
1 new lesson
With collapse key lessons-count
Lingora 9:10
Lingora
3 new lessons
Three sends while a phone is offline. Without a collapse key the phone shows a stack of three notifications; with the collapse key lessons-count it shows one, the latest.
Same idea, three spellings
- FCM (Android):
android.collapse_key. FCM keeps up to four different collapse keys per device at a time; past that, it doesn't guarantee which ones survive. On the device, a notificationtagreplaces a shown notification with the same tag. - APNs (iOS): the
apns-collapse-idheader, up to 64 bytes. A new notification with the same ID replaces the one on screen. - Web push: the
Topicheader. A push service replaces a pending message that has the same topic; the browser's notificationtagreplaces one already shown.
{ "message": { "token": "…",
"android": { "collapse_key": "lessons-count" },
"apns": { "headers": { "apns-collapse-id": "lessons-count" } } } } Every message that matters on its own
- Don't collapse messages that each carry their own news, such as two different replies. People lose one.
- Don't reuse one key for unrelated messages to "save" slots. FCM's four-key limit is per device, not per type.
- A collapse key doesn't cancel a delivered notification by itself. It only replaces it when a new one with the same key arrives.
In Oricato
Each message can carry one collapse key, set in the composer or the API. Oricato maps it to every platform for you:
- Android:
android.collapse_keyfor the push service, and the notification tag on the device, so the Oricato SDK replaces the notification on screen. - iOS:
apns-collapse-id. - The key is the same string everywhere, so a report or an API call names it once.
Related terms
- TTLhow long a message waits for an offline device.
- Payloadwhat a message carries, and its size limit.
- How push notifications workthe full path from server to screen.
Sources Firebase, "Non-collapsible and collapsible messages"; Apple, "Sending notification requests to APNs"; RFC 8030 §5.4 (read Oct 16, 2026).