Tag: Step goal

I’m using this tag to show a image when Steps goal is between 1 to 5 percent.
(([SC_PER]>=1) * ([SC_PER]<=5)) ? 100:0

Everything works as expected, except at 5% the image 's opacity becomes 0. (WFS RUN). Why is that?

It looks like a bug. Restart WFS would show the image at SG is 5%, but it would not show again after adjusting the Steps parameter via up and down button a few more times.

image

It’s behaving oddly. Sometimes restart WFS would work, other times it won’t…Maybe the tag expression is incorrect and it’s confusing the WFS? I don’t know.

I see it the issue is when you go up a percent it goes up 100 steps and and when you go down it goes down 100 steps to 500 if you then lower the step count to 499 it shows.
(([SC_PER]>=1) * ([SC_PER]<=5)) ? 100:0
interestingly it works if you add a component for [SC] or you make [SC_PER]<6

However isn’t this really moot as you would never lower the step percent when walking :slight_smile:

Ron
Samsung Developer Relations

1 Like

[SC_PER]<6 fixes it. Thanks. BTW, Steps goal parameter can’t be changed?
image

BTW, Steps goal parameter can’t be changed?

It is by default set to 10,000 steps that is the recommended daily steps by the AMA or something. You have to change it in the pancake Menu → Project → Settings → Health. It is set for that specific watch face and does not reflect the Samsung Health or Google Fit Settings. Be sure to mention that in your product description.

Ron
Samsung Developer Relations

1 Like

Hmm…so the Steps Goal % [SC_PER] does not synced with the Steps Goal in Google Fit nor Samsung Health?

Under government privacy regulations, an app publisher must provide how their data stored who has access and used. Therefore there is no longer an open Samsung Health API. I do not know about Google Fit Platform But since it is not standard part of the Wear OS powered by Samsung I don’t think WFS has any way to use it.

p.s. I installed Google Fit on my watch once and I had about 25% increase in daily battery use. I imagine it just duplicated Samsung Health.

Ron
Samsung Developer Relations

1 Like

So the end user can’t change the steps goal value from the watchface at all?

Since we can’t access Samsung Health or Google Fit settings, nor is there a data type for Steps Goal in the Health Services API, the watch face can only do it’s own goal.
The philosophy of Wear OS powered by Samsung is to use developer created complications for these so there is a consistent UI over all watches.

Ron
Samsung Developer Relations

1 Like

I understand the privacy regulations is the driving force behind this, and it makes sense. But from end users’ perspective, it’s odd not only steps goal on watchface doesn’t sync with the health app but it also can’t be changed. I hope we’ll at least have the option to let end users set their own steps goal from the watchface that are not linked with health apps.

I’m confused John, cause on my GW4 I’ve changed the step goal?

You changed the step goal in Samsung Health, it changes the complications but not the the WFS step goal tags.

Ron

1 Like