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

Call back not working

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

Best Answer
0 Votes
1 REPLY 1

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

Best Answer
0 Votes