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

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].

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.WebpushConfig{
  data: map() | nil,
  fcmOptions: GoogleApi.FCM.V1.Model.WebpushFcmOptions.t() | nil,
  headers: map() | nil,
  notification: map() | nil
}

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.