-
public class PushBase.Admin
-
-
Field Summary
Fields Modifier and Type Field Description public final PushBase.DeviceRegistrationsdeviceRegistrationspublic final PushBase.ChannelSubscriptionschannelSubscriptions
-
Method Summary
Modifier and Type Method Description voidpublish(Array<Param> recipient, JsonObject payload)Sends a push notification directly to a device, or a group of devices sharing the same clientId. voidpublishAsync(Array<Param> recipient, JsonObject payload, CompletionListener listener)Asynchronously sends a push notification directly to a device, or a group of devices sharing the same clientId. -
-
Method Detail
-
publish
void publish(Array<Param> recipient, JsonObject payload)
Sends a push notification directly to a device, or a group of devices sharing the same clientId.
Spec: RSH1a
- Parameters:
recipient- A JSON object containing the recipient details using clientId, deviceId or the underlying notifications service.payload- A JSON object containing the push notification payload.
-
publishAsync
void publishAsync(Array<Param> recipient, JsonObject payload, CompletionListener listener)
Asynchronously sends a push notification directly to a device, or a group of devices sharing the same clientId.
Spec: RSH1a
- Parameters:
recipient- A JSON object containing the recipient details using clientId, deviceId or the underlying notifications service.payload- A JSON object containing the push notification payload.listener- A listener to be notified of success or failure.
-
-
-
-