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 |
---|---|
String |
getCollapseId()
Returns an optional identifier for this notification that allows this notification to supersede previous
notifications or to be superseded by later notifications with the same identifier.
|
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()
null
.null
String getCollapseId()
null
Copyright © 2013–2017 Turo. All rights reserved.