1
votes

I know how to get app version, package name, udid for both Android and iOS But for iOS I can get more info.

Code below returns model name, device name, os type and os version:

string(Device.model.UTF8String);//Model name
string(Device.name.UTF8String);//Device name
string(Device.systemName.UTF8String);//Os type
string(Device.systemVersion.UTF8String);//Os version

Is it also possible to get this info For Android? I'm currently working in Delphi 10 Seattle.

1
Can you try this module: fire-monkey.ru/topic/… - kami
@kami It's hard to read russian, but only code i see is for iOS - Remi
Do not read russian :) Read code in first attachment DeviceInfo.zip. - kami

1 Answers

3
votes

I found what i'm looking for. With the following code i can get model name of android phone and android version:

JStringToString(TJBuild.JavaClass.MODEL);//Model name
JStringToString(TJBuild_VERSION.JavaClass.RELEASE);//Os Version