You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Health Connect on Android now allows for downloading over 30 days worth of data, but that requires requesting a new permission: PERMISSION_READ_HEALTH_DATA_HISTORY: Documentation.
Although this can be added manually by apps, it would be a nice addition to the Health plugin.
The text was updated successfully, but these errors were encountered:
Created two new methods isHealthDataHistoryAuthorized() and
requestHealthDataHistoryAuthorization().
Both methods are no-op on iOS and return true since Apple Health does
not restrict history length.
Closescph-cachet#1126
Health Connect on Android now allows for downloading over 30 days worth of data, but that requires requesting a new permission: PERMISSION_READ_HEALTH_DATA_HISTORY: Documentation.
Although this can be added manually by apps, it would be a nice addition to the Health plugin.
Thank you for suggesting this addition and making the pull request!
I was hoping to add this on my app right now, can you please explain how I would add this manually? I added <uses-permission android:name="android.permission.health.PERMISSION_READ_HEALTH_DATA_HISTORY"/> in my AndroidManifest, how would I update to implementation("androidx.health.connect:connect-client:1.1.0-alpha11") within my app?
If you use my branch, the connect-client dependency is already updated. You might need to refresh your build with flutter clean.
Please note that you should first check if the feature is even available, or risk crashing your app when trying to use it: isHealthDataHistoryAvailable().
Once you do that you will need to request that permission separately using requestHealthDataHistoryAuthorization(). It shows a separate permission screen, so it cannot be bundled with other permission requests.
Description
Health Connect on Android now allows for downloading over 30 days worth of data, but that requires requesting a new permission:
PERMISSION_READ_HEALTH_DATA_HISTORY
: Documentation.Although this can be added manually by apps, it would be a nice addition to the Health plugin.
The text was updated successfully, but these errors were encountered: