carp_connectivity_package 0.11.0 copy "carp_connectivity_package: ^0.11.0" to clipboard
carp_connectivity_package: ^0.11.0 copied to clipboard

outdated

CARP connectivity sampling package. Samples connectivity status, bluetooth devices, and wifi access points.

CARP Connectivity Sampling Package #

pub package

This library contains a sampling package for connectivity sampling to work with the carp_mobile_sensing package. This packages supports sampling of the following Measure types:

  • wifi
  • connectivity
  • bluetooth

See the wiki for further documentation, particularly on available measure types and sampling schemas. There is privacy protection of wifi and bluetooth names as part of the default Privacy Schema.

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.

Installing #

To use this package, add the following to you pubspc.yaml file. Note that this package only works together with carp_mobile_sensing.

dependencies:
  flutter:
    sdk: flutter
  carp_mobile_sensing: ^0.6.3
  carp_connectivity_package: ^0.1.0
  ...

iOS Integration #

From iOS >= 13 there is no longer access to wifi information. See here form the Flutter description and here for the iOS description.

To enable bluetooth tracking, add this permission in the Info.plist file located in ios/Runner:

<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 carp_mobile_sensing package:

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.

  SamplingPackageRegistry().register(ConnectivitySamplingPackage());
2
likes
0
pub points
73%
popularity

Publisher

verified publishercachet.dk

CARP connectivity sampling package. Samples connectivity status, bluetooth devices, and wifi access points.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

carp_mobile_sensing, connectivity, crypto, flutter, flutter_blue, json_annotation, permission_handler, wifi_info_flutter

More

Packages that depend on carp_connectivity_package