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

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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.