Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Got the permission, but every array is empty, when it reads the data. #21

Closed
janosdupai opened this issue Sep 24, 2019 · 3 comments
Closed

Comments

@janosdupai
Copy link

Thank you for this awesome pub!
I implemented it, and everything works fine in iOS, but somehow android device give me empty arrays, without any data.
If I am right, I got the permission, and the console printing me every datatype, but it has an empty square bracket.
Should I do any specific on android devices?
My application not appears in the device setting at the Samsung Health Settings -> connected services (where my fitness apps are - that apps also using the samsung health data too).

@janosdupai
Copy link
Author

D/FitKit (21469): readSample: heart_rate
I/flutter (21469): []
D/FitKit (21469): readSample: step_count
I/flutter (21469): []
D/FitKit (21469): readSample: height
I/flutter (21469): []
D/FitKit (21469): readSample: weight
I/flutter (21469): []
D/FitKit (21469): readSample: distance
I/flutter (21469): []
D/FitKit (21469): readSample: energy
I/flutter (21469): []
D/FitKit (21469): readSample: water
I/flutter (21469): []
D/FitKit (21469): readSample: sleep
I/flutter (21469): []

@krokyze
Copy link
Owner

krokyze commented Sep 24, 2019

Hey @janosdupai Android is integrated with Google Fit, as far as I know they don't have any connection between them. Can you please try to sync your Samsung Health Data with Google Fit?

@janosdupai
Copy link
Author

Thank you! That was the reason. Now works perfectly!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants