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
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
08-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..."
08-22-2022 22:16
08-22-2022 22:16
I don't think you're allowed to use WebView (see here). That page suggests alternatives.
08-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.
08-25-2022 13:21
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.
08-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.
08-26-2022 07:55
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.