-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
ElevationGained returns empty array #111
Comments
Hey! Are you seeing any errors in ADB in Android Studio or It just returns empty array? Did you try putting it in try catch and see if an exception happens? |
@matinzd thanks for the response. There are no errors logged and the function successfully returns an empty array. It does not throw an error. Do you have any examples of this working? |
I'm having the same issue with the power data... But starting with the elevation gain case (and using Samsung Health). Google Fit doesn't have the option to add elevation manually (at least I didn't find it): I've checked Health Connect and the elevation gain data isn't there (maybe Samsung Health didn't publish it?). In the case of power, I entered the exercise manually via Google Fit and when checking this data on my app, the array comes empty. I checked on Health Connect and the potency data was there. I opened this issue: #125 |
Have you added any In both of your cases, it looks like you expect that by entering |
I have used Google Fit with a device and recorded a true activity with real elevation gain (not manually entered) and exercise session data comes through, just no elevation gain. The array is empty. |
Did you check Health Connect app to see if |
Describe the bug
I've logged an ExerciseSession (Samsung Health and Google Fit) which includes elevation gained. It syncs but the request to readRecords for ElevationGained returns an empty array. Distance comes back and the basic activity details, but no elevation.
To Reproduce
Steps to reproduce the behavior:
react-native-health-connect
Expected behavior
Should return an array of elevation records, like the readRecords for 'Distance' that includes inMeters, etc.
Minimal Reproducible
Environment:
The text was updated successfully, but these errors were encountered: