@capgo/capacitor-device-info
Overview
Section titled “Overview”@capgo/capacitor-device-info reads device health and hardware metrics from Capacitor apps. It can return one snapshot on demand or stream periodic updates through deviceInfoUpdate listeners for charts and operational dashboards.
Core Capabilities
Section titled “Core Capabilities”getInfo- Read CPU, memory, GPU, storage, thermal state, low-power mode, and onboard sensor data.startMonitoring- Start interval sampling and emitdeviceInfoUpdateevents.stopMonitoring- Stop the active monitoring session.isMonitoring- Inspect the active monitoring state and sample count.getPluginVersion- Return the native plugin version.
Onboard Sensor Data
Section titled “Onboard Sensor Data”The plugin reports only hardware data exposed by the device or OS. It does not call weather services or fetch outside temperature or humidity from the network.
Android can report available sensors and common readings such as battery temperature, ambient temperature, relative humidity, pressure, light, and proximity when the hardware exposes them. Android CPU and GPU temperature are best-effort thermal-zone reads and can be omitted by restricted devices.
iOS reports CPU, memory, storage, GPU, thermal state, low-power mode, and CoreMotion sensor availability. Public iOS APIs do not expose raw CPU or GPU temperature.
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-device-info.
Keep going from @capgo/capacitor-device-info
Section titled “Keep going from @capgo/capacitor-device-info”If you are using @capgo/capacitor-device-info for diagnostics or monitoring, connect it with Getting Started for install and usage, Using @capgo/capacitor-device-info for the tutorial page, @capgo/capacitor-barometer for dedicated pressure streaming, and @capgo/capacitor-light-sensor for dedicated light sensor updates.