cartel v0.3.0 Cartel.Message.Apns.Item
Apple APNS Binary API item submessage
id
: Can be one of:
data
: the value varies based on id
:
device_token
:String.t
, token of the recipientpayload
:Map
representing the notification payloadnotification_identifier
:Integer.t
id for delivery errorsexpiration_date
:Integer.t
, UNIX timestamp of notification expirationpriority
:priority_immediately/0
orpriority_when_convenient/0
For more details on the format see the Binary Provider API section of Apple Local and Remote Notification Programming Guide
Summary
Functions
Returns the device_token
item binary protocol id
Encodes the item
to binary format
Returns the expiration_date
item binary protocol id
Returns the notification_identifier
item binary protocol id
Returns the payload
item binary protocol id
Returns the priority
item binary protocol id
Returns the priority_immediately
item binary protocol value
Returns the priority_when_convenient
item binary protocol value
Types
t :: %Cartel.Message.Apns.Item{data: term, id: term}
Functions
Specs
expiration_date :: Integer.t
Returns the expiration_date
item binary protocol id
Specs
notification_identifier :: Integer.t
Returns the notification_identifier
item binary protocol id
Specs
priority_immediately :: Integer.t
Returns the priority_immediately
item binary protocol value
Specs
priority_when_convenient :: Integer.t
Returns the priority_when_convenient
item binary protocol value