Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
io.realm.mongodb.push

Class Push

java.lang.Object
io.realm.mongodb.push.Push

The Push client allows to register/deregister for push notifications from a client app.

Constructor and Description
OsPush osPush
)
Modificador y Tipo
Método y descripción

public void

Anula el registro del token de registro de FCM vinculado al dispositivo del usuario que ha iniciado sesión actualmente en MongoDB Realm.

Anula el registro del token de registro de FCM vinculado al dispositivo del usuario que ha iniciado sesión actualmente en MongoDB Realm.

public void

String registrationToken
)

Registers the given FCM registration token with the currently logged in user's device on MongoDB Realm.

Registers the given FCM registration token with the currently logged in user's device on MongoDB Realm.

  • Métodos heredados de la clase java.lang.Object: getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

public Push (
OsPush osPush
)
public void deregisterDevice ()

Anula el registro del token de registro de FCM vinculado al dispositivo del usuario que ha iniciado sesión actualmente en MongoDB Realm.

Anula el registro del token de registro de FCM vinculado al dispositivo del usuario que ha iniciado sesión actualmente en MongoDB Realm.

Parámetros

  • callback - La función de retorno utilizada cuando el dispositivo se ha registrado o la llamada falló; siempre ocurrirá en el mismo hilo en el que se llamó este método.

public void registerDevice (
String registrationToken
)

Registers the given FCM registration token with the currently logged in user's device on MongoDB Realm.

Parámetros

  • registrationToken - The registration token to register.

Registers the given FCM registration token with the currently logged in user's device on MongoDB Realm.

Parámetros

  • registrationToken - The registration token to register.

  • callback - La función de retorno utilizada cuando el dispositivo se ha registrado o la llamada falló; siempre ocurrirá en el mismo hilo en el que se llamó este método.

Volver

io.realm.mongodb.push

En esta página