carp_connectivity_package: ^0.12.0 copied to clipboard
CARP connectivity sampling package. Samples connectivity status, bluetooth devices, and wifi access points.
CARP Connectivity Sampling Package #
For Flutter plugins for other CARP products, see CARP Mobile Sensing in Flutter.
If you're interested in writing you own sampling packages for CARP, see the description on how to extend CARP on the wiki.
To use this package, add the following to you
pubspc.yaml file. Note that
this package only works together with
dependencies: flutter: sdk: flutter carp_mobile_sensing: ^0.6.3 carp_connectivity_package: ^0.1.0 ...
iOS Integration #
To enable bluetooth tracking, add this permission in the
Info.plist file located in
<key>UIBackgroundModes</key> <array> <string>bluetooth-central</string> <string>bluetooth-peripheral</string> <string>external-accessory</string> <string>fetch</string> </array>
Using it #
To use this package, import it into your app together with the
import 'package:carp_mobile_sensing/carp_mobile_sensing.dart'; import 'package:carp_connectivity_package/connectivity.dart';
Before creating a study and running it, register this package in the SamplingPackageRegistry.