09-18-2023 23:15
09-18-2023 23:15
I am integrating fitbit into my android studio project via scribejava, but unable to get authorization code through redirect url. My redirect url is com.example.myfitbit://fitbit
If i use different redirect url which is http://127.0.0.1:8080/ I am getting code in chrome but not in my android project. It shows my an error that no such line or element found for
final String code = in.nextLine();Please help me. Thanks!
09-19-2023 13:31
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
09-19-2023 13:31
Hi @Shivi5
The authorization code should be attached to the redirect URL, just like with Chrome. This problem seems more like a coding issue. Maybe someone here who has worked with Android Studio would be able to tell you how to extract the authorization code from the redirect_uri.
Best Answer