FCMSendMessageNotification

public struct FCMSendMessageNotification : Encodable

An FCMSendMessageNotification encapsulates the details of an FCM send message request notification payload.

  • The notification’s title.

    Declaration

    Swift

    public let title: String?
  • The notification’s body text.

    Declaration

    Swift

    public let body: String?
  • The sound to play when the device receives the notification.

    Declaration

    Swift

    public let sound: String?
  • The action associated with a user click on the notification.

    Declaration

    Swift

    public let clickAction: String?
  • The the key to the body string in the app’s string resources to use to localize the body text to the user’s current localization.

    Declaration

    Swift

    public let bodyLocKey: String?
  • The variable string values to be used in place of the format specifiers in bodyLocKey to use to localize the body text to the user’s current localization.

    Declaration

    Swift

    public let bodyLocArgs: String?
  • The key to the title string in the app’s string resources to use to localize the title text to the user’s current localization.

    Declaration

    Swift

    public let titleLocKey: String?
  • The variable string values to be used in place of the format specifiers in titleLocKey to use to localize the title text to the user’s current localization.

    Declaration

    Swift

    public let titleLocArgs: String?
  • The notification’s icon. Note: for messages to Android devices only.

    Declaration

    Swift

    public let icon: String?
  • tag

    The identifier used to replace existing notifications in the notification drawer. Note: for messages to Android devices only.

    Declaration

    Swift

    public let tag: String?
  • The notification’s icon color, expressed in #rrggbb format. Note: for messages to Android devices only.

    Declaration

    Swift

    public let color: String?
  • The value of the badge on the home screen app icon. Note: for messages to iOS devices only.

    Declaration

    Swift

    public let badge: String?