07-05-2018 18:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-05-2018 18:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

07-06-2018 14:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



07-06-2018 14:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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?
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

