carp_communication_package 0.6.5 copy "carp_communication_package: ^0.6.5" to clipboard
carp_communication_package: ^0.6.5 copied to clipboard

outdated

CARP communication sampling package. Samples phone, sms, and calendar logs and activity.

CARP Communication Sampling Package #

pub package

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

  • phone_log
  • telephony
  • text-message-log
  • text-message
  • calendar

See the wiki for further documentation, particularly on available measure types and sampling schemas. There is privacy protection of text messages and phone numbers in 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.5.0
  carp_communication_package: ^0.5.0
  ...

Android Integration #

Add the following to your app's manifest.xml file located in android/app/src/main:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="<your_package_name>"
    xmlns:tools="http://schemas.android.com/tools">

   ...
   
   <!-- The following permissions are used for CARP Mobile Sensing -->
   <uses-permission android:name="android.permission.CALL_PHONE"/>
   <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
   <uses-permission android:name="android.permission.READ_PHONE_NUMBERS"/>
   <uses-permission android:name="android.permission.READ_SMS"/>
   <uses-permission android:name="android.permission.READ_CALENDAR"/>
    <!-- Even though we only want to READ the calendar, for some unknown reason we also need to add the WRITE permission. -->
   <uses-permission android:name="android.permission.WRITE_CALENDAR"/>

</manifest>

NOTE: Version 0.5.0 is migrated to AndroidX. This should not result in any functional changes, but it requires any Android apps using this plugin to also

migrate if they're using the original support library. See Flutter AndroidX compatibility

iOS Integration #

Add this permission in the Info.plist file located in ios/Runner:

<key>NSCalendarsUsageDescription</key>
<string>INSERT_REASON_HERE</string>

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_comunication_package/context.dart';

Before creating a study and running it, register this package in the SamplingPackageRegistry.

  SamplingPackageRegistry.register(CommunicationSamplingPackage());
1
likes
0
pub points
41%
popularity

Publisher

verified publishercachet.dk

CARP communication sampling package. Samples phone, sms, and calendar logs and activity.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

call_log, carp_mobile_sensing, crypto, device_calendar, flutter, json_annotation, sms

More

Packages that depend on carp_communication_package