FCM DeviceID/InstanceID

90 views
Skip to first unread message

Rae Bryan

unread,
Jan 20, 2023, 9:24:09 AM1/20/23
to Firebase Google Group
Does firebase store duplicate copy DeviceID that was generated by the app in google cloud server?

Device InstancesIDs are stored in my Database sent by my app. If firebase stores copy of instanceID how would I get it via API.

Frank van Puffelen

unread,
Jan 20, 2023, 9:27:31 AM1/20/23
to Firebase Google Group
There is no API to get a list of all device IDs. You will have to maintain your own database of them, as you're already doing.
If you want to keep your own database up to date, you can remove stale IDs when you get a response indicating the token is outdated/invalid. For an example of this, see here.

Reply all
Reply to author
Forward
0 new messages