Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ / /

Class Push

On this page

  • io.realm.mongodb.push
  • Constructors
  • Method Summary
  • Inherited Methods
  • Constructor Detail
  • Method Detail
  • deregisterDevice
  • deregisterDeviceAsync
  • registerDevice
  • registerDeviceAsync
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
)
Modifier and Type
Method and Description
public void

Deregisters the FCM registration token bound to the currently logged in user's device on MongoDB Realm.

Deregisters the FCM registration token bound to the currently logged in user's device on 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.

  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

public Push (
OsPush osPush
)
public void deregisterDevice ()

Deregisters the FCM registration token bound to the currently logged in user's device on MongoDB Realm.

Deregisters the FCM registration token bound to the currently logged in user's device on MongoDB Realm.

Parameters

  • 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 registerDevice (
String registrationToken
)

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

Parameters

  • registrationToken - The registration token to register.

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

Parameters

  • 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.

Back

io.realm.mongodb.push