03-22-2018 02:47 - last edited on 03-22-2018 07:56 by SunsetRunner
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-22-2018 02:47 - last edited on 03-22-2018 07:56 by SunsetRunner
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello ,
CustomTabsIntent.Builder intentBuilder = new CustomTabsIntent.Builder();
CustomTabsIntent customTabsIntent = intentBuilder.build();
CustomTabActivityHelper.openCustomTab(mParent, customTabsIntent, uri, new CustomTabActivityHelper.CustomTabFallback() {
@Override
public void openUri(Activity activity, Uri uri) {
openWebView(uri, mParent);
}
});
I write like this for my OAuth2.0 code. But the problem here is that is not going back to webview to get the access token. Can you help how to get that access token in that code.
Moderator edit: moved to Web API
04-05-2018 04:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-05-2018 04:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I work with FitBit API on Android, so there might be some differences..
For the redirect_url to function correctly in Android - let's assume you are in DEV mode:
- redirect_url needs to be set up properly in Application Settings in FitBit Developers
- redirect_url needs to be called correctly in the Application
- redirect_url needs to be set up correctly in Intent Filter in the Application Manifest so it knows what Activity/ Screen to redirect to..
Are these all set up (correctly)?
If so, can you provide some code, without credentials please?
Kind regards,
Niels

