Is a firebase token ID based on the device's characteristics, such as IMEI for phones, MAC for PC, etc.. ?
My primary concern is the following:
Multiple users use a given device to access the same app ( Think FB ).
- User 1 logs to the app and Firebase provides a token ( E.g. FirebaseInstanceId.getInstance().getInstanceId() ).
- User 1 does a logout
- User 2 logs in.
- Is the same Firebase registration token from #1 going to be used now for User 2?
Is a new firebase ID generated for User 2 or is this something that needs to be handled manually by the app itself? I have the feeling that this is more a responsibility of the app developer where they monitor who logs in and so forth and the old registration ID is cancelled while a new one is generated for this new login ?
Just to clarify - I only use Firebase Cloud Messaging and nothing else from Firebase so I will be managing the notifications from my own server. This means that I will be storing the Firebase registration IDs in my own database to know for which Firebase Registration ID to generate a notification (e.g. user receives a message from another user), for example.