I need to identify the devices where the app is installed, to enable/disable some functions basing on a licence structure (the app communicate to my server the device_id and get back a licence level).
In B4A it was easy reading the IMEI, here I have learned that the IMEI is not readable, so I found on this forum this method to get a "unique" device_id.
What I see is that uninstalling the app, rebooting the phone and reinstalling it, that code change !
Is that possible or for sure I have a bug somewhere in my code ?
In B4A it was easy reading the IMEI, here I have learned that the IMEI is not readable, so I found on this forum this method to get a "unique" device_id.
B4X:
Dim no As NativeObject
no =no.Initialize("UIDevice").RunMethod("currentDevice", Null)
log(no.GetField("identifierForVendor").AsString)
What I see is that uninstalling the app, rebooting the phone and reinstalling it, that code change !
Is that possible or for sure I have a bug somewhere in my code ?