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

Webpush protocol options.

Attributes

  • data (type: map(), default: nil) - Arbitrary key/value payload. If present, it will override google.firebase.fcm.v1.Message.data.
  • fcmOptions (type: GoogleApi.FCM.V1.Model.WebpushFcmOptions.t, default: nil) - Options for features provided by the FCM SDK for Web.
  • headers (type: map(), default: nil) - HTTP headers defined in webpush protocol. Refer to Webpush protocol for supported headers, e.g. "TTL": "15".
  • notification (type: map(), default: nil) - Web Notification options as a JSON object. Supports Notification instance properties as defined in Web Notification API. If present, "title" and "body" fields override [google.firebase.fcm.v1.Notification.title] and [google.firebase.fcm.v1.Notification.body].

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.FCM.V1.Model.WebpushConfig{
  data: map() | nil,
  fcmOptions: GoogleApi.FCM.V1.Model.WebpushFcmOptions.t() | nil,
  headers: map() | nil,
  notification: map() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.