flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

Requesting irrelevant writes on iOS - health: ^9.0.1

Open mudlee opened this issue 1 year ago • 2 comments

Device / Emulator and OS

Please complete the following information for each phone and/or emulator you're experiencing this bug on:

  • Device: simulator
  • OS: iOS 17.4

Describe the bug

I request read and read_write permissions for various types. What I see, that when the permission modal pops up is that it wants to read_write more than I specify.

To Reproduce

Request read for anything and read_write for mindfulness and water.

Expected behavior

I'd expect, if I specify to write only two types, the permission windows requests writes for those to writes. So I'd like to see only write request for WATER and MINDFULNESS.

Actual behavior

I see this in the logs:

flutter: >> trying to get permissions for [ACTIVE_ENERGY_BURNED, BASAL_ENERGY_BURNED, BLOOD_GLUCOSE, BLOOD_OXYGEN, BLOOD_PRESSURE_DIASTOLIC, BLOOD_PRESSURE_SYSTOLIC, BODY_FAT_PERCENTAGE, BODY_MASS_INDEX, BODY_TEMPERATURE, DIETARY_CARBS_CONSUMED, DIETARY_PROTEIN_CONSUMED, HEART_RATE, HEART_RATE_VARIABILITY_SDNN, HEIGHT, RESTING_HEART_RATE, RESPIRATORY_RATE, STEPS, WALKING_HEART_RATE, WEIGHT, DISTANCE_WALKING_RUNNING, MOVE_MINUTES, DISTANCE_DELTA, SLEEP_IN_BED, SLEEP_ASLEEP, SLEEP_AWAKE, SLEEP_LIGHT, SLEEP_DEEP, SLEEP_REM, SLEEP_OUT_OF_BED, SLEEP_SESSION, EXERCISE_TIME, WORKOUT, NUTRITION, MINDFULNESS, WATER] with permissions [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2]

Screenshots

But I see this in the simulator:

Screenshot 2024-04-09 at 18 22 20

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-arm64, locale
    en-HU)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.88.0)
[✓] Connected device (3 available)
    ! Error: Browsing on the local area network for Batmobile. Ensure the device
      is unlocked and attached with a cable or associated with the same local
      area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code
      -27)
[✓] Network resources

! Doctor found issues in 1 category.

mudlee avatar Apr 09 '24 16:04 mudlee

Still exists in 10.2.0.

mudlee avatar Apr 22 '24 04:04 mudlee

Is this repo maintained by anyone?

mudlee avatar May 13 '24 07:05 mudlee