1 min readMar 11, 2019
As per docs:
getId(): Returns the stable identifier that uniquely identifies this application instance.
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.
getInstanceId(): Returns the ID and automatically generated token for this Firebase project.
This generates an Instance ID if it does not exist yet, which starts periodically sending information to the Firebase backend (see getId()).