cph-cachet / carp.sensing-flutter

CARP Mobile Sensing for Flutter, including mobile sensing framework, data backend support, and the CARP mobile sensing app.
MIT License
80 stars 28 forks source link

step count doesnt work (anymore) #390

Closed sc00n closed 5 months ago

sc00n commented 7 months ago

A few days before I didn't have any problems getting the step count. Now it doesnt come trough anymore.

I tried the following:

    protocol.addTaskControl(
        ImmediateTrigger(),
        BackgroundTask()
          ..addMeasure(Measure(type: SensorSamplingPackage.STEP_COUNT)),
        phone);

and

    protocol.addTaskControl(
        PeriodicTrigger(period: Duration(seconds: 5)),
        BackgroundTask()
          ..addMeasure(Measure(type: SensorSamplingPackage.STEP_COUNT)),
        phone);

It works with

  carp_core: 1.4.1
  carp_mobile_sensing: 1.4.7

but not with

  carp_core: 1.5.0
  carp_mobile_sensing: 1.5.1
bardram commented 7 months ago

Remember to add permission to access step counts / activity recognition API on both Android and iOS.

But - working on a new release and will check this again.

sc00n commented 6 months ago

I updated to

carp_core: 1.6.0
  carp_mobile_sensing: ^1.6.0
  carp_context_package: ^1.6.0

But I still am not getting any stepcount (on iOS)

edit: also with carp_mobile_sensing: ^1.6.1 it doesnt work.