Android Question Get unique id for user

webhost.company

Active Member
Licensed User
Longtime User
According to Android rules, We cannot use android_id or device_id or mac_address in new version android
As well, Use sms is not good idea for this
Please suggest to me for use unique id in each device for user
I need to it for use payment and other
Thanks
 

DonManfred

Expert
Licensed User
Longtime User
I recommend using Phone.GetSettings ("android_id").
?? He told that he is using higher Android Versions where it does not work anymore.
According to Android rules, We cannot use android_id or device_id or mac_address in new version android

I would like to change the recommendation to

 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

udg

Expert
Licensed User
Longtime User
Following what we debated a few times in the Forum I would have recommended Advertising ID as @DonManfred did.
This is new and welcomed info. Thanks @Erel
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
That statement is wrong.
Thanks Erel for this clarification.
Maybe we trusted your past posts too much ?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. You are correct. Many things related to identifiers have changed in recent years and I wasn't always aware to the usefulness of android_id.

2. The id that is most similar to mac address, phone number, IMEI and other no longer accessible ids, is the advertising identifier. This is a global id.
 
Upvote 0
Top