01-12-2022 06:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-12-2022 06:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello there,
I have some questions regarding Fitbit server. As I'm developing a mobile and web application that can fetch and update user data using Fitbit web Api. But may I know whether localhost server can fetch data from fitbit app through Fitbit server using Fitbit Web API?
01-12-2022 13:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



01-12-2022 13:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Divyakona
You might be able to use "localhost" for redirecting but you'll need to define an endpoint containing code that will read the authorization code from the redirect URL and exchange it for the access token. Localhost for a subscriber is not a good idea because Fitbit needs to have a physical IP address or host name to send the webhook notifications. With mobile applications, I usually see people specify a custom scheme that's defined on the mobile device. See https://dev.fitbit.com/build/reference/web-api/developer-guide/application-design/#Redirect-URL for more information.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

01-12-2022 18:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-12-2022 18:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I see, so in that as an alternative if I choose firebase would that work for me smoothly for both mobile and web application? Besides that, when a client wants to use my mobile application, do they have to download fitbit application in their mobile device in order to access data? Or no need ?

01-13-2022 14:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



01-13-2022 14:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The Fitbit mobile application is required to sync their device data with the Fitbit data services. Most likely the participant will install the Fitbit mobile application on the same device as your mobile application, but this is not required. A participant can manually enter data through the Fitbit web site and that data would be available to your application, too.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

