Scope of Firebase Instance ID and Token

I have read many articles about Firebase Instance Id

both registration token

here , here and here .

I have some confusion about the scope and relationship between Instance Id

and Token

. I would like to confirm that my understandings are correct or incorrect.

  • Instance Id

    is created in the application . Not for an installed device . For example, if you have a Mail and Notes application, you will have two Instance IDs on firebase.
  • Token

    created for installed devices. For example, if you have ten users installed , you will have ten registration tags .
  • One Instance Id

    will have many tokens to register.
  • We usually need to leave registration tokens

    (not an instance Id) on our app server to send push notifications .
+3


source to share


1 answer


  • Partly correct. Instance instance refers to an instance of an application. In your example, if you have a Mail Application and Notes, they each have their own Instance ID, but they are not the same, so they cannot be grouped together.

    Think of the sample app as installing an app. If you've installed an app on a device, it has an instance of the app. If you uninstall it, it will also be uninstalled, if you reinstall it, it is a new instance of the application.

  • Right. But it is also possible to have multiple tokens for the same device, but this only applies to multiple senders .

  • Maybe. See # 2.

  • Yes. The registration token is the value required as a target for push notifications.



+3


source







All Articles