FCMSendMessageRequest

public struct FCMSendMessageRequest : Encodable

An FCMSendMessageRequest encapsulates the details of an FCM send message request.

  • The priority of the message.

    Declaration

    Swift

    public let priority: FCMSendMessagePriority
  • The group of messages that can be collapsed.

    Declaration

    Swift

    public let collapseKey: String?
  • Whether or not to indicate to the client that content is available in order to wake the device. Note: for messages to iOS devices only.

    Declaration

    Swift

    public let contentAvailable: Bool?
  • Whether or not the content in the message can be mutated. Note: for messages to iOS devices only.

    Declaration

    Swift

    public let mutableContent: Bool?
  • How long (in seconds) the message should be kept in FCM storage if the device is offline.

    Declaration

    Swift

    public let timeToLive: Int64?
  • The custom data to send in the payload.

    Declaration

    Swift

    public let data: Document?
  • The predefined, user-visible key-value pairs of the notification payload.

    Declaration

    Swift

    public let notification: FCMSendMessageNotification?