FirebaseMessaging
Firebase Cloud Messaging, as the Android SDK's com.google.firebase.messaging.FirebaseMessaging. Receiving messages is platform code on every platform (FirebaseMessagingService on Android).
The JS SDK has no topic subscription (a web client's token is subscribed from a server with the Admin SDK) and no auto-init (a token is only ever generated by getToken): those members do nothing on JS and carry @UnsupportedOnJs, so code compiled for JS gets a warning until it opts in.
firebase-java-sdk has no Cloud Messaging: every operation fails with an UnsupportedOperationException.
Types
Properties
Whether the registration token is generated automatically at startup, which apps turn off until the user has consented. Always false on JS, where a token is only generated by getToken; setting it does nothing there.
Always false: the JS SDK only generates a token in getToken. Setting it does nothing.
Kept in memory: there is no registration to initialise on the JVM.
Always false: the JS SDK only generates a token in getToken. Setting it does nothing.
Functions
Deletes the registration token of this app instance, so it stops receiving messages.
The registration token of this app instance, requested from the backend if needed.
Subscribes this app instance to topic. A no-op on JS, whose SDK has no client-side topic subscription.
A no-op: the JS SDK has no client-side topic subscription (a web token is subscribed from a server with the Admin SDK).
A no-op: the JS SDK has no client-side topic subscription (a web token is subscribed from a server with the Admin SDK).
Unsubscribes this app instance from topic. A no-op on JS, whose SDK has no client-side topic subscription.
A no-op: the JS SDK has no client-side topic subscription (a web token is subscribed from a server with the Admin SDK).
A no-op: the JS SDK has no client-side topic subscription (a web token is subscribed from a server with the Admin SDK).