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 topic (generally the bundle ID of the receiving app), a JSON payload, and (optionally) a time at which the notification is invalid and should no longer be delivered.
ApnsPayloadBuilder
Modifier and Type | Method and Description |
---|---|
Date |
getExpiration()
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.
|
String |
getToken()
Returns the token of the device to which this push notification is to be sent.
|
String |
getTopic()
Returns the topic to which this notification should be sent.
|
String getToken()
String getPayload()
Date getExpiration()
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 re-delivery at a time.DeliveryPriority getPriority()
null
,
an immediate delivery priority is assumed.String getTopic()
Returns the topic to which this notification should be sent. This is generally the bundle ID of the receiving app.
Some (older) APNs certificates contain only a single topic; if this push notification is sent via a client using
a single-topic certificate, this topic may be null
, in which case the APNs gateway will use the
certificate's subject (the bundle ID for the receiving app) as the topic.
null
for the default topic if this
notification is sent on a connection with a single-topic certificateCopyright © 2013–2016 RelayRides. All rights reserved.