Reputation: 143
For my app we need a unique device id, to detect which devices was already assigned (used) to customer and which is not assigned (clean) and ready to assign
The problem is Android 10 and above restrict access to hardware device number, IMEI, mac-adress.
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. The value may change if a factory reset is performed on the device or if an APK signing key changes. I tried to use device_info_plus but it generates a different key after every app reinstall. If you have any solution, ideas, please fell free to suggest
Upvotes: 0
Views: 96
Reputation: 122
Try this lib: device_information 0.0.4 It's old but it works for me :)
Upvotes: 0