@capgo/capacitor-pedometer
Access comprehensive pedometer data for fitness and health tracking
The Capacitor Pedometer plugin provides access to device pedometer sensors, allowing you to track steps, distance, pace, cadence, and floors climbed for fitness and health applications.
Key Features
- Step Counting - Accurate step detection and counting
- Distance Tracking - Calculate distance traveled
- Pace & Cadence - Monitor walking/running speed
- Floor Tracking - Count floors climbed (iOS)
- Real-time Updates - Live pedometer data streaming
- Historical Data - Query pedometer data from specific time ranges
Installation
npm install @capgo/capacitor-pedometernpx cap syncPlatform Support
- iOS: Full support (iPhone 5S and newer with M7+ coprocessor)
- Android: Full support (API 21+)
- Web: Not supported (no browser API for pedometer access)
Use Cases
- Fitness Apps - Track daily steps and activity
- Health Monitoring - Monitor activity levels
- Wellness Programs - Encourage physical activity
- Running Apps - Track pace and distance
- Step Challenges - Gamify daily step goals
API Overview
The plugin provides methods to:
- Check pedometer availability
- Get current step count and measurements
- Start/stop real-time measurement updates
- Query historical pedometer data
- Listen to measurement events
- Request activity recognition permissions
Next Steps
Get started with the Getting Started guide to integrate pedometer tracking into your Capacitor app.