public class GCMPushNotificationSender extends Object implements PushNotificationSender
| Constructor and Description |
|---|
GCMPushNotificationSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
sendPushMessage(Variant variant,
Collection<String> tokens,
UnifiedPushMessage pushMessage,
NotificationSenderCallback callback)
Sends GCM notifications (
UnifiedPushMessage) to all devices, that are represented by
the List of tokens for the given AndroidVariant. |
public void sendPushMessage(Variant variant, Collection<String> tokens, UnifiedPushMessage pushMessage, NotificationSenderCallback callback)
UnifiedPushMessage) to all devices, that are represented by
the List of tokens for the given AndroidVariant.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.