public interface ApnsPushNotification
A push notification that can be sent through the Apple Push Notification service (APNs). Push notifications have a token that identifies the device to which it should be sent, a JSON payload, and (optionally) a time at which the notification is invalid and should no longer be delivered.
TokenUtil
,
ApnsPayloadBuilder
Modifier and Type | Method and Description |
---|---|
Date |
getDeliveryInvalidationTime()
Returns the time at which Apple's push notification service should stop trying to deliver this push notification.
|
String |
getPayload()
Returns the JSON-encoded payload of this push notification.
|
DeliveryPriority |
getPriority()
Returns the priority with which this push notification should be sent to the receiving device.
|
byte[] |
getToken()
Returns the token of the device to which this push notification is to be sent.
|
byte[] getToken()
String getPayload()
Date getDeliveryInvalidationTime()
null
, the push notification service will not attempt to store the notification at all. Note that APNs
will only store one notification per device token for redelivery at a time.DeliveryPriority getPriority()
null
,
an immediate delivery priority is assumed.Copyright © 2013–2015 RelayRides. All rights reserved.