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

Fitbit Settings API oAuth not working with Android device

Hi,

 

I have implemneted Settings API oAuth flow as per this document: https://dev.fitbit.com/build/reference/settings-api/#oauth-button

My settings/index.jsx looks exactly same like example code in below image

auth.PNGNow when I am running this app code using iPhone as companion, I am able to get accesstoken and it prints log under "OnAccessToken" method.

 

But the issue is when I am running the same app code with Android phone, I am not getting access token. It does not go under "onAccessToken" method and prints nothing. Instead it gives me error like "Unhandled promise rejection"

 

So could not figuring it out that why the same snippet of code working with iphone and not working with android. I ensured that fitbit app is at latest version in both the mobile device.

 

Looking forward to hear back soon. Thanks.

Best Answer
0 Votes
1 REPLY 1

Resolved...

 

Issue is with Androi version. My phone was having old version of android which was creating issue. I checked with Android P and it worked.

Best Answer
0 Votes