Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[health 11.1.1] IOS: writeMenstruationFlow crashes on "unspecified" flow #1113

Open
PetrKubes97 opened this issue Jan 8, 2025 · 0 comments
Labels
bugfix a bug fix

Comments

@PetrKubes97
Copy link

Plugin Name

health

Plugin Version

11.1.1

Device

IPhone SE

Operating System

iOS 18.2

Describe the bug

await Health().writeMenstruationFlow(
        flow: MenstrualFlow.unspecified,
        ....

freezes the whole app.

await Health().writeMenstruationFlow(
        flow: MenstrualFlow.none,
        ....

Writes the "unspecified" flow into Apple HealthKit.

Steps to Reproduce

Try writing data with MenstrualFlow.none and MestrualFlow.unspecified and observe what actually gets written into the Apple Health app and how the app freezes.

Expected Behavior

MenstrualFlow.unspecified writes unspecified flow into HealthKit.
MenstrualFlow.none writes none flow into HealthKit.

Actual Behavior

MenstrualFlow.none writes unspecified flow into HealthKit.
MenstrualFlow.unspecified freezes the app.

Flutter Logs

No response

Screenshots

No response

Flutter Doctor Output

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.1.1 24B91 darwin-arm64, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc3)
    ✗ 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/to/macos-android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.2)
[✓] VS Code (version 1.96.2)
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 2 categories.

Additional Information

No response

@PetrKubes97 PetrKubes97 added the bugfix a bug fix label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix a bug fix
Projects
None yet
Development

No branches or pull requests

1 participant