Question: Is there any way i can check which sports app(s) connected to Health Connect?
kfchan-git opened this issue ยท 6 comments
Seems like if the users were to decline whilst there are data stored in HealthConnect, there is no way to determine if HealthConnect is still able to retrieve data from the sports app
What do you mean?
What do you mean?
like for example, if a user actually has Google Fit (as an example) connected to Health Connect, then somehow, he actually switches off the permission (app access between Health Connect and Google Fit) and does not delete data previously accessed and stored in Health Connect. Even though i am still able to retrieve the previous data, i am not able to determine if Health Connect is still able to access Google Fit's data. I am still able to check if it is still accessible by retrieving the most recent data (say last 24 hours ago), i wouldn't think this is the most optimal way.
I am also facing same issue, anybody have answer if health connect provides data when it sync data from another fitness app like "Google Fit". How to handle the case when user disabled the sinking data from third party app or user don't have any other third party app for sinking data, alert user for downloading third party app and enable sinking.
Health Connect itself doesn't provide information or data to you. You either need to write data yourself or enable access from other apps to write data into it. Google Fit is different and you should not expect this library work that way.
Read more here about the comparison guide:
https://developer.android.com/health-and-fitness/guides/health-connect/migrate/comparison-guide
judging from what you're saying, can i assume that there's no official way to determine the permissions from 3rd fitness party apps in Health Connect? @matinzd
No.