Skip to content

@capgo/capacitor-device-info

Device metrics and onboard sensor snapshots for dashboards, diagnostics, and runtime monitoring.

@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.

  • getInfo - Read CPU, memory, GPU, storage, thermal state, low-power mode, and onboard sensor data.
  • startMonitoring - Start interval sampling and emit deviceInfoUpdate events.
  • stopMonitoring - Stop the active monitoring session.
  • isMonitoring - Inspect the active monitoring state and sample count.
  • getPluginVersion - Return the native plugin version.

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.

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.