public abstract class Push extends Object
| Constructor and Description |
|---|
Push(OsPush osPush) |
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterDevice()
Deregisters the FCM registration token bound to the currently logged in user's
device on MongoDB Realm.
|
RealmAsyncTask |
deregisterDeviceAsync(App.Callback<Void> callback)
Deregisters the FCM registration token bound to the currently logged in user's
device on MongoDB Realm.
|
void |
registerDevice(String registrationToken)
Registers the given FCM registration token with the currently logged in user's
device on MongoDB Realm.
|
RealmAsyncTask |
registerDeviceAsync(String registrationToken,
App.Callback<Void> callback)
Registers the given FCM registration token with the currently logged in user's
device on MongoDB Realm.
|
public void registerDevice(String registrationToken)
registrationToken - The registration token to register.public RealmAsyncTask registerDeviceAsync(String registrationToken, App.Callback<Void> callback)
registrationToken - The registration token to register.callback - The callback used when the device has been registered or the call
failed - it will always happen on the same thread as this method was
called on.public void deregisterDevice()
public RealmAsyncTask deregisterDeviceAsync(App.Callback<Void> callback)
callback - The callback used when the device has been registered or the call
failed - it will always happen on the same thread as this method was
called on.