Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed disallowed_useragent issue for Google authentication on Android#228

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
marcioferlan wants to merge1 commit intofullstackreact:master
base:master
Choose a base branch
Loading
frommarcioferlan:master

Conversation

@marcioferlan
Copy link

Closes#87

This sets the webview User-Agent header to solve thedisallowed_useragent issue for Google authentication on Android.

benkaiser, doguhanokumus, josephdangerstewart, and binetatounky reacted with thumbs up emoji
@martin-badin
Copy link

Hello, please merge this fix!

josephdangerstewart, binetatounky, mbryk, LautaroMir93, agrass, and droidMakk reacted with thumbs up emojijosephdangerstewart and LautaroMir93 reacted with hooray emojijosephdangerstewart and LautaroMir93 reacted with heart emoji

Copy link

@ericchan3721ericchan3721 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Better using the user's actual UserAgent and replacewv from it instead of the hard coded one
mWebView.getSettings().setUserAgentString(mWebView.getSettings().getUserAgentString().replace("; wv", ""));

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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@ericchan3721ericchan3721ericchan3721 requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Android 403: Error: Disallowed Useragent

3 participants

@marcioferlan@martin-badin@ericchan3721

[8]ページ先頭

©2009-2025 Movatter.jp