Package selection guidance compiled from public package information, community data, and project usage.
The flutter_activity_recognition package enables developers to detect and respond to user activities such as walking, running, cycling, or driving on both Android and iOS devices. It leverages native platform APIs to provide real-time activity recognition, making it ideal for fitness tracking, navigation apps, and context-aware services. The plugin is lightweight and integrates seamlessly with Flutter applications. It supports background activity monitoring and offers event-driven updates for efficient resource usage.
Use cases
Fitness and wellness tracking
Context-aware mobile applications
Smart navigation systems
Activity-based analytics
Driver detection for safety apps
Key features
Real-time activity detection
Cross-platform support (Android & iOS)
Background activity monitoring
Event-driven API
Lightweight and efficient
Suitable for
Developers building fitness apps
Apps requiring user context awareness
Mobile applications needing activity insights
Projects involving motion-based triggers
Considerations
Requires appropriate permissions on both platforms
Battery usage may increase with continuous monitoring
Limited to supported device hardware
May require testing on physical devices
Privacy considerations for continuous activity tracking
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
This plugin is used to recognize user activity on Android and iOS platforms. To implement this plugin, Android used ActivityRecognitionClient and iOS used CMMotionActivityManager.
Features
Can request activity recognition permission.
Can subscribe to ActivityStream to listen activity in real time.
After adding the flutter_activity_recognition plugin to the flutter project, we need to specify the platform-specific permissions to use for this plugin to work properly.
:baby_chick: Android
Open the AndroidManifest.xml file and add the following permissions between the <manifest> and <application> tags.