Skip to content
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

Exercise Sample: Not getting Distance, Steps or Laps #76

Open
harishvgk opened this issue Jan 30, 2023 · 7 comments
Open

Exercise Sample: Not getting Distance, Steps or Laps #76

harishvgk opened this issue Jan 30, 2023 · 7 comments

Comments

@harishvgk
Copy link

The exercise sample app build is created and run in both the Wear OS emulator and Samsung Galaxy Watch (Sys ver 11) Wear OS 3.5.

But only getting the heart rate per min and calorie

The code is build without modification. Please help

Development machine Mac Moterey 12.4, Apple M1 Chip

Thanks,
Harish

@breanatate
Copy link
Collaborator

Hi @harishvgk, have you enabled the synthetic data providers (more troubleshooting info here)?

The sample doesn't count steps, but distance should be populating with the rest of the data. For laps, if your watch has 3 buttons, you should be able to press the 3rd button to mark a lap (Wear OS 3 and higher reserves 2 buttons for the OS). Because of this, laps probably won't work on the Galaxy Watch since it has 2 buttons.

@harishvgk
Copy link
Author

@breanatate Thanks for your response.

we are not getting the distance in Samsung Galaxy Watch also. I tried installing apk of the exact sample code without any editing

Synthetic data providers are not working in my emulator (Mac book - Apple M11 )

Thanks,
Harish

@breanatate
Copy link
Collaborator

Hi @harishvgk we recently published an updated sample using Compose for Wear OS. Are you able to see distance when using that sample?

@Raghuram224
Copy link

Raghuram224 commented Aug 20, 2024

I couldn't see distance and laps in Google pixel watch

@breanatate
Copy link
Collaborator

Hi @Raghuram224 are you using ExerciseSampleCompose?

Can you share how you're testing? Are you using synthetic data providers, or walking outside?

As mentioned above, laps won't work on Pixel Watch as all the buttons are reserved for the OS.

@Raghuram224
Copy link

Raghuram224 commented Aug 22, 2024

I tried testing this on a Pixel Watch and then in the emulator, but it didn't work.

Correct me if I am testing this in a wrong way.

@breanatate
Copy link
Collaborator

If you run ExerciseSampleCompose on any emulator running Wear 4+, it will automatically generate data, including distance.

If you run ExerciseSampleCompose on an emulator running Wear 3, you'll have to use the synthetic data commands listed here.

What version of Wear OS are you running?

You will not see laps, as that requires a button press, and in Wear 3+, the buttons are reserved for the OS and not accessible by apps. I'm removing laps in an upcoming update, and also officially deprecating ExerciseSample in favor of ExerciseSampleCompose.

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

No branches or pull requests

3 participants