The guide walks developers through using Capgo’s small, focused Capacitor plugins to read motion, compass, pedometer, barometer, light and proximity sensors on iOS and Android. It shows how to install only the needed plugins, add the required usage strings to Info.plist, and request runtime permissions, then start, listen to, and stop sensor updates while keeping battery impact low.
Listeners are demonstrated for accelerometer tilt calculations, shake detection, device orientation, compass heading with accuracy monitoring, step counting with activity‑recognition handling, and barometric altitude estimation. The article also highlights platform quirks—such as Android’s missing relative altitude, iOS permission rejections, and the need to declare optional hardware features—to avoid App Store review issues.
Topics:
- Installing and configuring only the sensor plugins you need
- Requesting and handling permissions for motion and location
- Managing sensor listeners efficiently to prevent battery drain
- Dealing with platform‑specific quirks like barometer altitude and compass calibration
Full article
https://capgo.app/blog/capacitor-device-sensors-guide/