FCMRequest.collapseKey

This parameter identifies a group of messages (e.g., with

More...
struct FCMRequest
@serializationIgnoreOut
@serializationKeys("collapse_key")
Nullable!string collapseKey;

Detailed Description

collapse key

"Updates Available") that can be collapsed, so that only the last message gets sent when delivery can be resumed. This is intended to avoid sending too many of the same messages when the device comes back online or becomes active.

Note that there is no guarantee of the order in which messages get sent.

Note: A maximum of 4 different collapse keys is allowed at any given time. This means a FCM connection server can simultaneously store 4 different send-to-sync messages per client app. If you exceed this number, there is no guarantee which 4 collapse keys the FCM connection server will keep.

Meta