-
Notifications
You must be signed in to change notification settings - Fork 622
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 10.2.0] Can not access health connect by only AppStore released app in Android version below 13 #958
Comments
Here is more information about the message you're getting: Have you submitted this request form and been given permission to access Health Connect from Google? |
@tantzygames Thanks!, I was approved the request form. I need only step count and I wrote this line in AndroidManifest. |
I had to make some changes to get it working on Android 14 which have stopped it working properly on 13 and lower. I think we still need the flutter_health_connect for 13 and lower even though it crashes in 14. I will stop hijacking your issue. |
Device / Emulator and OS
Please complete the following information for each phone and/or emulator you're experiencing this bug on:
Describe the bug
I am using the package for only getting step count in my flutter app.
When I called requestAuthorization method of health package somewhere with useHealthConnectIfAvailable,
I got this error by only PlayStore released app in Android version below 13.
(My app can run it by PlayStore released app in Android14 and local release builded app in Android below 13 )
This app can't access Health Connect
like the linkThe Link wrote
Apps currently need to be allowlisted to get access to Health Connect. You can follow the process outlined at: https://developer.android.com/guide/health-and-fitness/health-connect/frequently-asked-questions#q_how_do_i_request_access_to_readwrite_data_types
But I have approved the allowlist.
To Reproduce
Steps to reproduce the behavior -
Write code according to the10.2.0 of health package and release PlayStore.
Then call requestAuthorization method of health package somewhere.
Expected behavior
I want to prevent the dialog
This app can't access Health Connect
from appearing.Actual behavior
I tried to catch a exception of requestAuthorization method by a log tool.
But I could not get nothing.
Flutter doctor
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.2.1 23C71 darwin-arm64, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.88.1)
[✓] Connected device (2 available)
[✓] Network resources
The text was updated successfully, but these errors were encountered: