I want to know where the firebase fcm instance id token is stored on an android phone. I Already know how to generate a firebase token by using FirebaseInstanceId.getInstance().getToken()
.
I want to know how and where does android stores this token on the device as every time i run this method, the token is same (Except when token is regenerated) . I have a rooted phone so i checked all the databases and preferences files of my app, but the token is not stored in any of those. Since the token is same every time, it must be stored in the phone somewhere. Does anyone knows where the token is stored
Thanks for reading, in advance .
EDIT
So I Tried killing and restarting the app and disconnected the internet. Now when i try to get the token, it is still there, so does it mean that it is still on the device?. still don't know the answer