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

Fitbit integration in Android

Hi, I try to integrate fitbit into my app by following fitbit documentation. My problem is once I authenticated the application means it is not redirecting me to my andropid activity. I show my codes what i get.

 

button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String url = "https://www.fitbit.com/oauth2/authorize?response_type=code&client_id="
+ cliend id + "&redirect_uri=" + redirect_uri + "&scope=" + "activity";
Intent oauthIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(oauthIntent);
}
});

 

In my manifest

 

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="MyExample4" />
</intent-filter>

 

Can any one help me for this one.

An experienced self-starter, avid learner and problem solver, working as an Business Analyst at Mindmajix.com
Best Answer
0 Votes
1 REPLY 1

Hi @Bargavi,

 

What are you seeing after the user provides consent?  Are you taken to the redirect url where the authorization code is provided as part of the URL?

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes