Levente 1 Posted February 18 Hi, What unique identification number can be read from iPhones? We are developing an application in Delphi 12 that requires a unique identification number from the user. This is necessary to identify the user's device when it connects to our cloud server. Under Android, we solved this by reading the Android ID, which works well: var AndroidID: JString; begin AndroidID := TJSettings_Secure.JavaClass.getString(TAndroidHelper.ContentResolver, TJSettings_Secure.JavaClass.ANDROID_ID); ShowMessage(JStringToString(AndroidID)); end Thank you in advance for your help! Levente Share this post Link to post
Dave Nottage 557 Posted February 18 4 minutes ago, Levente said: What unique identification number can be read from iPhones? On iOS, it is common practice to use the identifierForVendor method of the UIDevice class. This value is guaranteed to remain the same for the life of the install (i.e. if the user uninstalls/re-installs your app, it may change). This code shows how to obtain it as a string. 1 Share this post Link to post
Levente 1 Posted February 18 Dave, Thank You for a quick answer, it is working! 😀 Best regards, Levente Share this post Link to post
IvanilsonR 0 Posted September 23 Hello. I am having this error: [DCC Error] uLogin.pas(220): E2003 Undeclared identifier: 'TJSettings_Secure' I believe i need to add the correct unit in uses. What's the correct unit please. Thank you all .. Ivanilson Ribeiro Brasil Share this post Link to post
Dave Nottage 557 Posted September 23 4 hours ago, IvanilsonR said: [DCC Error] uLogin.pas(220): E2003 Undeclared identifier: 'TJSettings_Secure' It's declared in: Androidapi.JNI.Provider Share this post Link to post