Skip to content
pubscout

carp_mobile_sensing

3.0.1, released 3 days ago by carp.dk

Mobile sensing framework for collecting sensor and device data via configurable probes.

$ flutter pub add carp_mobile_sensing
Source repository

What it does

A software framework for collecting sensor and device data from phones and wearables using probes, triggers, and tasks. It handles scheduling, local SQLite storage, and background sampling across multiple platforms.

AI-written summary of version 3.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to build a digital phenotyping or mHealth app requiring continuous background sensor data collection.
  • You want to collect step counts, ambient light, screen events, and battery status locally or via a study protocol.

Skip it when

  • You only need a simple, single sensor check without a full protocol-driven management framework.
  • You are targeting platforms other than Android and iOS.

Strengths

  • Cross-platform support for iOS and Android.
  • Extensible architecture supporting custom triggers, probes, and data endpoints.
  • Built-in local SQLite storage and background task handling.

Weaknesses

  • Requires careful platform-specific configuration for background execution and notifications.
  • Complex setup for custom study protocols and multi-device coordination.

Setup

Kind
Flutter widgets
Effort
High
Code generation
Yes (build_runner)
Direct dependencies
23

Requires configuring flutter_local_notifications for Android/iOS and flutter_background for Android along with appropriate permissions in AndroidManifest.xml and Info.plist.

SmartPhoneClientManager().configure().then((_) => SmartPhoneClientManager().addStudyFromProtocol(SmartphoneStudyProtocol.local(name: 'Tracking', measures: [Measure(type: SensorSamplingPackage.STEP_EVENT)])).then((study) => SmartPhoneClientManager().tryDeployment(study.studyDeploymentId, study.deviceRoleName).then((_) => SmartPhoneClientManager().resume())));

Alternatives

Packages that do the same job and could replace carp_mobile_sensing.

Works with

Packages commonly used together with carp_mobile_sensing: ones it builds on, ones built on it, and its own family.