Android Question How to retrieve Firebase installation ID (FID)?

toby

Well-Known Member
Licensed User
Longtime User
Firebase installation ID (FID) is the recommended way of generating a unique ID. See below for details. Could someone kindly show me how to retrieve FID in B4A?

TIA

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.
Source: https://developer.android.com/training/articles/user-data-ids
 

toby

Well-Known Member
Licensed User
Longtime User
"and it's (relatively) easily resettable because it only persists as long as the app is installed."

This is the same as generating a random string when the app starts for the first time and saving it in XUI.DefaultFolder.
You meant GUID. Google prefers FID over GUID and I'm wondering why.
 
Upvote 0
Top