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

Fitbit device Integration with Android app

ANSWERED

Hi,

 

 

I would like to Integrate Fitbit Surge Device and Track the Activities using My own Android application using Fitbit Web API,  So kindly please share the detailed description to begin with Fitbit Device and Android Application.  

 

Please let me know the Initial steps and procedure to integrate the Fitbit device.

 

 

Thank you,

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Welcome, @Akkhigan. The Fitbit Web API is a standard OAuth 2.0 API, so you should be able to use any OAuth 2.0 or HTTP library of your choice.

 

First, you need to register an application at https://dev.fitbit.com/apps/new

 

Then, you need to send a user through the authorization process, where the user gives your app permission to access their data. For an Android app, you'll want to use the Implicit Grant Flow.

 

After that, you request data from the Fitbit Web API by making HTTP requests with an Authorization header.

 

All of the endpoints are documented at https://dev.fitbit.com/docs .

View best answer in original post

Best Answer
0 Votes
12 REPLIES 12

Welcome, @Akkhigan. The Fitbit Web API is a standard OAuth 2.0 API, so you should be able to use any OAuth 2.0 or HTTP library of your choice.

 

First, you need to register an application at https://dev.fitbit.com/apps/new

 

Then, you need to send a user through the authorization process, where the user gives your app permission to access their data. For an Android app, you'll want to use the Implicit Grant Flow.

 

After that, you request data from the Fitbit Web API by making HTTP requests with an Authorization header.

 

All of the endpoints are documented at https://dev.fitbit.com/docs .

Best Answer
0 Votes

Hi Thank you, 

 

I would like to Integrate the fitbit devices into my application directly. So is there any such kind of libraries or SDK or Blutooth sync directly with third party apps.

 

Please let me know if any such options.

 

 

Thank you,

 

Best Answer
0 Votes

@Akkhigan: Third-party apps cannot communicate with Fitbit devices via Bluetooth. You need to use the Web API to get data from Fitbit.

Best Answer

Hi, we were having the same questions. Are there any apps that actually do this? We have downloaded a couple of them and they do offer some sort of connection between the app and the band, but we haven't been able to link them. We tried RunKeeper, for example and couldn't connect the band with the app, although the app has an option to do so. Are there any apps that we could check that succesfully link a third party app with Fitbit's Web API? 

 

Thanks,

Mauricio

Best Answer
0 Votes

@FunBox The connection is between a third party app and Fitbit, not to the actual device. You cannot connect a Fitbit device to a third party app. As Jeremiah said, you would need to use the Web API to get data from Fitbit.

 


@FunBox wrote:

Are there any apps that we could check that succesfully link a third party app with Fitbit's Web API?  


 

Maybe I'm misunderstanding the question, but there are plenty of third party apps that use Fitbit's Web API. There's a list of some of them here (which includes Runkeeper).

 

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes

Hi and thanks for your quick response. Sorry for not explaining in depth before. We are trying to create an app that uses Fitbit and we have made a few tests with Runkeeper. During this test we have been able to sync our Fitbit account with the app and we now understand that the Fitbit device can't connect directly to it, being a third party app. We would like to know if the user should have to install both apps (our app and Fitbit's official app).

 

Thanks!

Mauricio

Best Answer
0 Votes

@FunBox A user doesn't necessarily have to sync through the Fitbit app, so downloading the app is completely up to the user. However, the Fitbit tracker needs to sync to Fitbit through either a computer or mobile device for the data to be available through the API.

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer

Hi and thanks for your response. So we understand that the user doesn't need to have the fitbit app installed on his phone but he does need a fitbit account. How do we make the user sync his Fitbit data through our app? Is there a way to do so? We have seen some third party apps that include Fitibit login but we haven't been able to make it work.

 

Thank you!

Mauricio

Best Answer
0 Votes

HI,

 

Is there any sample code for web api using oauth2? 

 

Best Answer
0 Votes

I would like to Integrate Fitbit Surge Device and Track the Activities using My own Android application using Fitbit Web API, So kindly please share the detailed description to begin with Fitbit Device and Android Application. Please let me know the Initial steps and procedure to integrate the Fitbit device.

Best Answer
0 Votes

Hi @umeshwar,

 

Welcome! I would refer to Jeremiah's solution above to get started:

 

The Fitbit Web API is a standard OAuth 2.0 API, so you should be able to use any OAuth 2.0 or HTTP library of your choice.

 

First, you need to register an application at https://dev.fitbit.com/apps/new

 

Then, you need to send a user through the authorization process, where the user gives your app permission to access their data. For an Android app, you'll want to use the Implicit Grant Flow.

 

After that, you request data from the Fitbit Web API by making HTTP requests with an Authorization header.

 

All of the endpoints are documented at https://dev.fitbit.com/docs .



I hope this helps! Please let me know if you have any questions along the way.

Best Answer
0 Votes

I have register here https://dev.fitbit.com/apps/new applied for application implicit grant flow and then requested for HTTP requests with an Authorization header

in response access token and refresh token i got.

we have different clients(users) they will authenticate through over android app and access  

 

Best Answer
0 Votes