-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 403: Error: Disallowed Useragent #87
Comments
I started a project from scratch and I'm having the same issue.
|
I'll check later today... see if I can't figure out what's happening |
Any updates? |
You can use this fork until the PR gets merged in |
I'm still having the same issue. react-native: 0.42.0 |
Same, even after updating changes that @timbielawski made. react-native 45.1 |
The same: react-native: 0.45.1, |
The changes of @timbielawski works perfectly. Don't forget to clean the project after making those changes.
|
Any update on this issue? |
@HarshankArastu Try this fork which might fix this bug. |
It solved the issue for me. When will this be merged? |
@roshangm1 added the solution but its not merged yet. For the moment just modify the file in node_modules:
|
@krisidmisso your solution worked for me. Looks like it'll be merged into the repo soon |
The above fix actually generates another issue. If you get a notification from google it will say that you have logged in from a Nexus device due to the user agent string Hopefully there will be another fix |
A quick and dirty fix for you is just simply remove the or you can use update on 12 Apr 2021: you can remove Ref: https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html P.S. I have open the PR for this issue, however this library seems no longer supported by the original author, you may consider using other OAuth RN library. |
Simple add userAgent={"chrome"} It's works for me 🤘 |
I encountered this issue in Android (and not react). I first started with the solution
it worked. However, if the user is not logged in, Google asks the user to login and when they ask the user to verify the login, sometimes on an already logged in device and they report incorrect device details. Eg: On using the above example I was said I tried logging in on an Android 4 device, even when I was on an Android 9 device. This could be confusing to users. So I tried seeing what's the default value in
I realised the problem is My end code looked something like this
|
When trying to run this on android, it seems that google has now disallowed web views, is there any other way to get this library to work on android?
The text was updated successfully, but these errors were encountered: