Work with FIDs and GUIDs
The most straightforward solution to identifying an app instance running on a device is to use a Firebase installation ID (FID), and this is the recommended solution in the majority of non-ads use cases. Only the app instance for which it was provisioned can access this identifier, and it's (relatively) easily resettable because it only persists as long as the app is installed.
As a result, FIDs provide better privacy properties compared to non-resettable, device-scoped hardware IDs. For more information, see the
firebase.installations API reference.