Skip to content

DeviceInfo

class DeviceInfo

Basic device hardware and OS information returned by BackgroundGeolocation.getDeviceInfo.

final info = await BackgroundGeolocation.deviceInfo;
print('[DeviceInfo] ${info.manufacturer} ${info.model} (${info.platform})');

Members

framework

String framework

Development framework hosting the SDK.

Examples: "react-native", "capacitor", "cordova", "flutter"

manufacturer

String manufacturer

Device manufacturer.

Examples: "Apple", "Google", "Samsung", "Huawei"

model

String model

Device model identifier.

Examples: "iPhone15,2", "Pixel 8 Pro", "SM-G991B"

platform

String platform

OS platform name: "iOS" or "Android".

version

String version

OS version string.

Examples: "18.1", "14", "14.1.1"