Skip to content

DeviceInfo

export interface DeviceInfo {

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

const info = await BackgroundGeolocation.getDeviceInfo();
console.log(`[DeviceInfo] ${info.manufacturer} ${info.model} (${info.platform})`);

Members

framework

framework: string;

Development framework hosting the SDK.

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

manufacturer

manufacturer: string;

Device manufacturer.

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

model

model: string;

Device model identifier.

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

platform

platform: string;

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

version

version: string;

OS version string.

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