class Google::Apis::FcmV1::ApnsConfig

[Apple Push Notification Service](goo.gl/MXRTPa) specific options.

Attributes

fcm_options[RW]

Options for features provided by the FCM SDK for iOS. Corresponds to the JSON property `fcmOptions` @return [Google::Apis::FcmV1::ApnsFcmOptions]

headers[RW]

HTTP request headers defined in Apple Push Notification Service. Refer to [ APNs request headers](developer.apple.com/documentation/ usernotifications/setting_up_a_remote_notification_server/ sending_notification_requests_to_apns) for supported headers such as `apns- expiration` and `apns-priority`. Corresponds to the JSON property `headers` @return [Hash<String,String>]

payload[RW]

APNs payload as a JSON object, including both `aps` dictionary and custom payload. See [Payload Key Reference](developer.apple.com/documentation/ usernotifications/setting_up_a_remote_notification_server/ generating_a_remote_notification). If present, it overrides google.firebase. fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body. The backend sets a default value for `apns-expiration` of 30 days and a default value for `apns-priority` of 10 if not explicitly set. Corresponds to the JSON property `payload` @return [Hash<String,Object>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/fcm_v1/classes.rb, line 393
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/fcm_v1/classes.rb, line 398
def update!(**args)
  @fcm_options = args[:fcm_options] if args.key?(:fcm_options)
  @headers = args[:headers] if args.key?(:headers)
  @payload = args[:payload] if args.key?(:payload)
end