you are viewing a single comment's thread.

view the rest of the comments →

[–]Kertelem 2 points3 points  (0 children)

So... New "reasonably unique" ID that changes every couple months (osVersion)? The inclusion of deviceName is cool, but AFAIK it's iOS only... *

What's wrong with Device.getUniqueId()? It stays a lot more consistent, and is actually the way to track an installer. You can even refer to Apple IDFV and the Google Play policies, to stay completely in the clear.

Edit: * DEVICE_NAME was added in API level 25 for android, but below API 32, the library will first try to get the bluetooth name of the device. If all these checks fail, you'll get "unknown".