class Firebase::Admin::Messaging::APNSPayload

Represents the payload of an APNs message.

Mainly consists of the `aps` dictionary. But may also contain other arbitrary custom keys.

Attributes

aps[RW]

@return [APS] The aps instance to be included in the payload.

data[RW]

@return [Hash] Custom fields to include in the payload.

Public Class Methods

new(aps:, data: nil) click to toggle source

Initializes a payload.

@param [APS] aps

An {APS} instance to be included in the payload.

@param [Hash, nil] data

Arbitrary keyword arguments to be included as custom fields in the payload.
# File lib/firebase/admin/messaging/apns_payload.rb, line 21
def initialize(aps:, data: nil)
  @aps = aps
  @data = data
end