Skip to main content

Platform differences

DeviceDetails fields​

FieldiOSAndroid
brand, manufacturerAppleBuild.BRAND, Build.MANUFACTURER
modelUIDevice.model (iPhone, iPad)Build.MODEL (Pixel 9)
modelNameMarketing name from a model table (iPhone 16 Pro), else modelBuild.MODEL
deviceIdMachine name (iPhone17,3), simulated one on a simulatorBuild.DEVICE
productNameabsentBuild.PRODUCT
deviceNameUIDevice.name: the generic model on iOS 16+ without the entitlementDevice name setting, else Build.MODEL
deviceTypeInterface idiom; desktop for iPhone and iPad apps on a MacUI mode, TV and PC features, smallest width of 600 dp
deviceYearClassRelease year from the model table, absent for unknown modelsEstimate from physical memory
supportedAbisThe architecture the build runs asBuild.SUPPORTED_ABIS
systemName, systemVersioniOS or iPadOS, UIDevice.systemVersionAndroid, Build.VERSION.RELEASE
osBuildIdkern.osversion (24A335)Build.DISPLAY
osBuildFingerprintabsentBuild.FINGERPRINT
apiLevelabsentBuild.VERSION.SDK_INT
appNameCFBundleDisplayName, else CFBundleNameApplication label
bundleIdBundle identifierApplication ID
appVersion, buildNumberCFBundleShortVersionString, CFBundleVersionversionName, versionCode
installerPackageNameabsentInstalling package, absent when sideloaded
isEmulatorSimulator buildBuild fingerprint heuristic
isRootedJailbreak file and sandbox heuristic, false on a simulatorsu binaries and test-keys, false on an emulator
hasNotch, hasDynamicIslandFrom the model tableDisplay cutout on API 29+; hasDynamicIsland always false
totalMemoryProcessInfo.physicalMemoryActivityManager.MemoryInfo.totalMem
maxMemoryabsentRuntime.maxMemory

Sizes are bytes. Fields marked absent are undefined on that platform; their TypeScript types are optional.

info

deviceName on iOS 16 and later returns the generic model (iPhone) unless the app has Apple's user-assigned device name entitlement.

Methods​

MethodiOSAndroid
getUsedMemory()Memory footprint of the processProportional set size (Debug.MemoryInfo.totalPss)
getFontScale()Dynamic Type size relative to the defaultConfiguration.fontScale
getVendorId()identifierForVendor, shared by apps of the same vendorANDROID_ID, scoped to the app's signing key
isHeadphonesConnected()Wired, Bluetooth A2DP, HFP or LE output in the current audio routeWired, USB, Bluetooth A2DP or SCO, or BLE (API 31+) output
isPasscodeSet()LAContext can evaluate device owner authenticationKeyguardManager.isDeviceSecure
isLocationEnabled()CLLocationManager.locationServicesEnabled(), off the main threadLocation services setting
getUserAgent()navigator.userAgent from a short-lived WKWebView, cachedWebSettings.getDefaultUserAgent, off the main thread
getSystemFeatures()Always emptyPackageManager.systemAvailableFeatures
hasSystemFeature(name)Always falsePackageManager.hasSystemFeature

Simulators and emulators​

ValueiOS simulatorAndroid emulator
isEmulatortruetrue
isRootedfalsefalse
deviceIdThe simulated device's machine nameBuild.DEVICE
batteryLevelundefinedEmulated level
batteryStateunknownEmulated state