08-07-2019 08:49
08-07-2019 08:49
I apologize in advance if this seems obvious.
I am doing a clock face for Ionic, Versa, and Versa light. I submitted the clock for review and it was rejected because Versa Light does not support floors.
In the code, I already separated the Ionic and Versa using
index~300X300.gui (for Versa) and index~348X250.gui (for Ionic)
how would I then add a third index for just the Versa light? Naturally, I can not add a second index~300X300.gui
any advice help appreciated.
Answered! Go to the Best Answer.
Best Answer08-07-2019 09:07 - edited 08-07-2019 09:07
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
08-07-2019 09:07 - edited 08-07-2019 09:07
If you're showing a Floors value in your index.gui, then you can hide it by default (display=none), and show it (if available) using Javascript.
import { me as appbit } from "appbit";
import { today } from "user-activity";
if (appbit.permissions.granted("access_activity")) {
if (today.local.elevationGain !== undefined) {
// We have floors, show it here
// myFloorsThing.style.display = "visible";
}
}
Best Answer08-07-2019 09:07 - edited 08-07-2019 09:07
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
08-07-2019 09:07 - edited 08-07-2019 09:07
If you're showing a Floors value in your index.gui, then you can hide it by default (display=none), and show it (if available) using Javascript.
import { me as appbit } from "appbit";
import { today } from "user-activity";
if (appbit.permissions.granted("access_activity")) {
if (today.local.elevationGain !== undefined) {
// We have floors, show it here
// myFloorsThing.style.display = "visible";
}
}
Best Answer