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)
FcmServicePushClient
register
in interface FcmServicePushClient
registrationToken
- the registration token to register.Task
that completes when the registration is finished.public Task<Void> deregister()
FcmServicePushClient
deregister
in interface FcmServicePushClient
Task
that completes when the deregistration is finished.