GoogleApi.FCM.V1.Model.Notification (google_api_fcm v0.8.2) View Source

Basic notification template to use across all platforms.

Attributes

  • body (type: String.t, default: nil) - The notification's body text.
  • image (type: String.t, default: nil) - Contains the URL of an image that is going to be downloaded on the device and displayed in a notification. JPEG, PNG, BMP have full support across platforms. Animated GIF and video only work on iOS. WebP and HEIF have varying levels of support across platforms and platform versions. Android has 1MB image size limit. Quota usage and implications/costs for hosting image on Firebase Storage: https://firebase.google.com/pricing
  • title (type: String.t, default: nil) - The notification's title.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.FCM.V1.Model.Notification{
  body: String.t() | nil,
  image: String.t() | nil,
  title: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.