InstanceIdResult Stay organized with collections Save and categorize content based on your preferences.
This interface is deprecated.
Firebase Instance ID has been replaced withFirebaseInstallations for app instance identifiers andFirebaseMessaging.getToken() for FCM registration tokens.
Result object obtained from requests for an Instance ID and token.
Public Method Summary
| abstractString | getId() Returns the stable identifier that uniquely identifies this application instance. |
| abstractString | getToken() Returns the token that authorizes performing actions on behalf of this application instance. |
Public Methods
public abstractStringgetId()
Returns the stable identifier that uniquely identifies this application instance.
public abstractStringgetToken()
Returns the token that authorizes performing actions on behalf of this application instance.
For example, this token authorizes sending messages via Firebase Cloud Messaging.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-12-17 UTC.