I want to Display batteryLevel on watchface.
I referred "https://dev.fitbit.com/build/reference/device-api/power/#".
But I can't it.
"undefined" on my Console.
Is there a way to do it?
Answered! Go to the Best Answer.
In order to use that you need to do the following:
import { battery } from "power";
myBatteryLabel.text = battery.chargeLevel;I hope this helps 🙂
Sorry, I have very easy miss.
Variable name is "battery" to display batteryLevel.
So I changed this variable name, I'm successful!
Thank you so much!
Best AnswerYes this as just an example of the relevant code. It's the same way you
would set the text of time.
Best AnswerSo glad you found it 🙂 It's a pleasure! Always great to help each other
😄 This forum is great!