kvs-coder / health_kit_reporter

A Flutter wrapper for the HealthKitReporter library
https://pub.dev/packages/health_kit_reporter
MIT License
38 stars 38 forks source link

App is crashing when adding CorrelationType.bloodPressure.identifier #75

Open omkarlhr9595 opened 2 weeks ago

omkarlhr9595 commented 2 weeks ago

Describe the bug App is crashing when adding CorrelationType.bloodPressure.identifier

To Reproduce

final List<String> readTypes = [
        CategoryType.sleepAnalysis.identifier,
        CategoryType.appleStandHour.identifier,
        CategoryType.highHeartRateEvent.identifier,
        CategoryType.lowHeartRateEvent.identifier,
        CategoryType.irregularHeartRhythmEvent.identifier,
        CategoryType.lowCardioFitnessEvent.identifier,
        CategoryType.coughing.identifier,
        CategoryType.fatigue.identifier,
        CategoryType.appleWalkingSteadinessEvent.identifier,
        CorrelationType.bloodPressure.identifier,
        QuantityType.stepCount.identifier,
        QuantityType.distanceWalkingRunning.identifier,
        QuantityType.distanceCycling.identifier,
        QuantityType.distanceWheelchair.identifier,
        QuantityType.basalEnergyBurned.identifier,
        QuantityType.activeEnergyBurned.identifier,
        QuantityType.flightsClimbed.identifier,
        QuantityType.appleExerciseTime.identifier,
        QuantityType.pushCount.identifier,
        QuantityType.distanceSwimming.identifier,
        QuantityType.swimmingStrokeCount.identifier,
        QuantityType.vo2Max.identifier,
        QuantityType.appleStandTime.identifier,
        QuantityType.walkingSpeed.identifier,
        QuantityType.sixMinuteWalkTestDistance.identifier,
        QuantityType.stairAscentSpeed.identifier,
        QuantityType.stairDescentSpeed.identifier,
        QuantityType.heartRate.identifier,
        QuantityType.bodyTemperature.identifier,
        QuantityType.basalBodyTemperature.identifier,
        QuantityType.bloodPressureSystolic.identifier,
        QuantityType.bloodPressureDiastolic.identifier,
        QuantityType.respiratoryRate.identifier,
        QuantityType.restingHeartRate.identifier,
        QuantityType.walkingHeartRateAverage.identifier,
        QuantityType.heartRateVariabilitySDNN.identifier,
        QuantityType.oxygenSaturation.identifier,
        QuantityType.appleMoveTime.identifier,
        QuantityType.appleWalkingSteadiness.identifier,
        QuantityType.appleSleepingWristTemperature.identifier,
        QuantityType.runningPower.identifier,
        QuantityType.runningSpeed.identifier,
        QuantityType.heartRateRecoveryOneMinute.identifier,
      ];

      final appleHealthKitStatus = await HealthKitReporter.requestAuthorization(readTypes, []);

Additional context I am using flutter version 3.13.7