Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sleep on watch

ANSWERED

Hi, I am using a FitBit Versa and have created a custom watch face. But I would love to see my latest sleep there as well. Is there an api to get the latest sleep info to use?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

There isn't a Device API for it, but you can fetch the data from the Web API.

 

You can see a full example here: https://github.com/Fitbit/sdk-oauth

View best answer in original post

Best Answer
2 REPLIES 2

There isn't a Device API for it, but you can fetch the data from the Web API.

 

You can see a full example here: https://github.com/Fitbit/sdk-oauth

Best Answer

Thanks @JonFitbit it works great in the simulator. But when I deploy it to my phone and go to settings and press login Safari opens up and ask me to open FitBit, press ok and ends up back in fitbit app. But I do not see the data in my watch like I do on the simulator. Any ideas?

 

Edit: Nevermind. I forgot to add permissions to access internet in my package.json 😛

Best Answer
0 Votes