InstanceIdResult
Stay organized with collections
Save and categorize content based on your preferences.
This interface is deprecated.
Firebase Instance ID has been replaced with FirebaseInstallations
for app instance identifiers and FirebaseMessaging.getToken()
for FCM
registration tokens.
Result object obtained from requests for an Instance ID and token.
Public Method Summary
abstract String
|
getId()
Returns the stable identifier that uniquely identifies this application
instance.
|
abstract String
|
getToken()
Returns the token that authorizes performing actions on behalf of this
application instance.
|
Public Methods
public abstract String getId ()
Returns the stable identifier that uniquely identifies this application
instance.
public abstract String getToken ()
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 the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-12-17 UTC.
[null,null,["Last updated 2020-12-17 UTC."],[],[],null,["# InstanceIdResult\n\npublic interface **InstanceIdResult** \n**This interface is deprecated.** \n\nFirebase Instance ID has been replaced with [FirebaseInstallations](/docs/reference/android/com/google/firebase/installations/FirebaseInstallations)\nfor app instance identifiers and `FirebaseMessaging.getToken()` for FCM\nregistration tokens.\n\nResult object obtained from requests for an Instance ID and token. \n\n### Public Method Summary\n\n|----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | [getId](/docs/reference/android/com/google/firebase/iid/InstanceIdResult#getId())() Returns the stable identifier that uniquely identifies this application instance. |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | [getToken](/docs/reference/android/com/google/firebase/iid/InstanceIdResult#getToken())() Returns the token that authorizes performing actions on behalf of this application instance. |\n\nPublic Methods\n--------------\n\n#### public abstract [String](//developer.android.com/reference/java/lang/String.html) **getId** ()\n\nReturns the stable identifier that uniquely identifies this application\ninstance. \n\n#### public abstract [String](//developer.android.com/reference/java/lang/String.html) **getToken** ()\n\nReturns the token that authorizes performing actions on behalf of this application\ninstance.\n\nFor example, this token authorizes sending messages via Firebase Cloud\nMessaging."]]