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

Webpush protocol options.


  • data (type: map(), default: nil) - Arbitrary key/value payload. If present, it will override
  • 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


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


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


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

Unwrap a decoded JSON object into its complex fields.