01-25-2019 00:26
01-25-2019 00:26
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
Now 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.
01-25-2019 02:56
01-25-2019 02:56
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.