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.
Best Answer