02-02-2022 07:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

Jogger
3
0
0
02-02-2022 07:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
when I first time click login button it ask me for login info for Fitbit then after I press login it keep showing loading icons instead of returning me access token .
this is the function i am using
function OAuth(client_id, cb) {
Linking.addEventListener("url", handleUrl);
function handleUrl(event) {
Linking.removeEventListener("url", handleUrl);
const [, query_string] = event.url.match(/\#(.*)/);
const query = qs.parse(query_string);
cb(query.access_token);
}
client_id,
response_type: "token",
scope: "heartrate activity activity profile sleep",
redirect_uri: "fitbit://fit",
expires_in: "31536000",
})}`;
Linking.openURL(oauthurl).catch((err) =>
console.error("Error processing linking", err)
);
}
Please get back as soon as possible , thanks in advance
Please get back as soon as possible , thanks in advance

1 REPLY 1
02-07-2022 13:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



Fitbit Developer
2071
218
504
02-07-2022 13:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
This is a duplicate to https://community.fitbit.com/t5/Web-API-Development/Android-app-stuck-on-loading-after-logging-into-....
Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

