public class APNsPushNotificationSender extends Object implements PushNotificationSender
| Constructor and Description |
|---|
APNsPushNotificationSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
sendPushMessage(Variant variant,
Collection<String> tokens,
UnifiedPushMessage pushMessage,
NotificationSenderCallback callback)
Sends APNs notifications (
UnifiedPushMessage) to all devices, that are represented by
the Collection of tokens for the given iOSVariant. |
public void sendPushMessage(Variant variant, Collection<String> tokens, UnifiedPushMessage pushMessage, NotificationSenderCallback callback)
UnifiedPushMessage) to all devices, that are represented by
the Collection of tokens for the given iOSVariant.sendPushMessage in interface PushNotificationSendervariant - contains details for the underlying push network, e.g. API Keys/Idstokens - platform specific collection of client identifierspushMessage - payload to be send to the given clientscallback - invoked after submitting the request to the underlying push network to indicate the status
of the request (success or errorCopyright © 2014 JBoss by Red Hat. All Rights Reserved.