capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

Docs should not refer to Device ID as UUID

Open dminkovsky opened this issue 4 years ago • 0 comments

Just opened https://github.com/ionic-team/capacitor-plugins/issues/485, but perhaps it is more appropriate in this repo. Copy/paste from that issue:

I just added the Android platform and noticed that that result of Device#getInfo()#id is not a UUID as described in the docs. The value comes from android.provider.Settings.Secure.ANDROID_ID which the docs describe as:

On Android 8.0 (API level 26) and higher versions of the platform, a 64-bit number (expressed as a hexadecimal string), unique to each combination of app-signing key, user, and device.

Unfortunately, my backend input validation and database fields are expecting a UUID, which is a 128-bit number. Obviously this is not a big deal, but it would have been better if the Capacitor docs did not describe this field as a UUID, which would have spared me this surprised and saved me from having to do the deploy and data migration that will be required to fix this issue. Changing the docs to reflect this will likely save other developers from experiencing this needless pain point in the future.

As always, thank you for Capacitor!

dminkovsky avatar Jun 17 '21 13:06 dminkovsky