08-22-2022 06:44
08-22-2022 06:44
When trying to open oauth inside Android application web view with shouldOverrideUrlLoading it gives error "Authorization Error
Error 403: disallowed_useragent"
and lands on screen shown in screenshot with this link.
08-22-2022 08:55
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.
08-22-2022 08:55
Have you tested your authorization URL in a web browser on the Android device outside of your web view application?
Best,
Gordon
Best Answer08-22-2022 22:00
08-22-2022 22:00
I tested it and it works in Android device outside web view and it worked even it works on web browser too.
It stop working only when it override android web view client to intercept URLs using "shouldOverrideUrlLoading" method.
My authorization url for fitbit is "https://www.fitbit.com/login/transferpage?disableThirdPartyLogin=true&redirect=/oauth2/authorize?cli..."
Best Answer08-22-2022 22:16
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
08-22-2022 22:16
I don't think you're allowed to use WebView (see here). That page suggests alternatives.
Best Answer08-24-2022 00:48
08-24-2022 00:48
Thank you for reverting. I am using this web view since last 6-8 months and it worked properly and stopped working since a 1-30 days ago.
Is there any way to continue using the same approach.
Best Answer08-25-2022 13:21
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.
08-25-2022 13:21
The documentation that @Gondwana pointed out hasn't changed in over a year. The fact that you got it to work was probably a bug that recently got fixed.
Best Answer08-25-2022 21:03
08-25-2022 21:03
Okay thank you for the update. Can you point out to a document or reference which I can look and get the thing working for my case.
Best Answer08-26-2022 07:55
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.
08-26-2022 07:55
I guess you'll need this section for android development: https://dev.fitbit.com/build/reference/web-api/developer-guide/application-design/#Displaying-the-Au.... This should explain what is supported for your environment. If you need anything else, please let me know.
Best Answer