Overview
carp_aware_package receives data from an Apple Watch.
The collecting is done by a companion watchOS app that runs the AWARE sensors. That
app is a watchOS target inside your Flutter app’s Xcode project, and you add it once.
Both halves of the AWARE framework ship inside the same Flutter plugin. There is no
separate package to fetch and no AWARE source to check out. The iOS app links
carp-aware-package automatically, and you link carp-aware-watch into the watch
target manually.
How the two apps communicate
Section titled “How the two apps communicate”The watch app carries no study configuration of its own.
It asks the phone app what to sample, and the phone answers from the AppleWatchDevice.
Watch app setup
Section titled “Watch app setup”1. Add the targetCreate the watchOS app target, set the bundle identifiers, and link the AWARE framework into it
2. Capabilities & permissionsHealthKit, background modes, and the privacy strings watchOS requires before it will ask the participant for anything
3. The watch appA simple SwiftUI app on the watch that asks the phone for settings and collects AWARE sensors