activity_recognition_flutter
6.1.0, released 3 months ago by carp.dk
Activity recognition plugin for Android and iOS providing event-based information about user activities.
What it does
Provides event-based information about activities detected by the phone such as walking, running, biking, or being in a vehicle. Delivers activity type, confidence level, and timestamp through a stream while the app is running.
AI-written summary of version 6.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to detect user physical activities like walking, running, or cycling on Android or iOS.
- You want event-based updates about detected user activities through a Dart stream.
Skip it when
- You need the activity recognition to function while the app is completely terminated by the user or OS.
- You are using CocoaPods on iOS, as this plugin only supports Swift Package Manager.
Strengths
- Supports both Android and iOS native platforms.
- Provides confidence percentages and timestamps for each detected activity.
- Uses Pigeon for type-safe platform communication.
Weaknesses
- Does not work when the app is terminated by the user or OS.
- Requires Swift Package Manager on iOS and drops CocoaPods support.
- Requires manual runtime permission requests and specific platform configuration (like Info.plist keys).
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Requires runtime permission handling on Android (`ACTIVITY_RECOGNITION`), adding `NSMotionUsageDescription` in iOS `Info.plist`, and enabling Swift Package Manager for iOS apps.
Alternatives
Packages that do the same job and could replace activity_recognition_flutter.
- app_settings
Open iOS and Android phone settings pages from a Flutter app.
89Compare - package_info_plus
Flutter plugin to query app package info like version, build number and installer store.
93Compare - device_info_plus
Provides detailed information about the current device, make, model, and OS version.
93Compare - screen_retriever
Read desktop screen size, work area, scale factor and cursor position on Windows, macOS and Linux.
93Compare