public final class FcmServicePushClientImpl extends Object implements FcmServicePushClient
factory| Constructor and Description |
|---|
FcmServicePushClientImpl(CoreFcmServicePushClient client,
TaskDispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
Task<Void> |
deregister()
Deregisters the FCM registration token bound to the currently logged in user's
device on Stitch.
|
Task<Void> |
register(String registrationToken)
Registers the given FCM registration token with the currently logged in user's
device on Stitch.
|
public FcmServicePushClientImpl(CoreFcmServicePushClient client, TaskDispatcher dispatcher)
public Task<Void> register(String registrationToken)
FcmServicePushClientregister in interface FcmServicePushClientregistrationToken - the registration token to register.Task that completes when the registration is finished.public Task<Void> deregister()
FcmServicePushClientderegister in interface FcmServicePushClientTask that completes when the deregistration is finished.