user agent changed to support mobile view as well as solve issue with…#130
user agent changed to support mobile view as well as solve issue with…#130roshangm1 wants to merge 1 commit intofullstackreact:masterfrom roshangm1:master
Conversation
… disallow user agent for google login in webview
|
This is happening with google also. |
|
This isn't the right way to fix the disallow useragent issue on Google. They're pretty clear on how they expect this to be implemented: https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html. |
ericchan3721
left a comment
There was a problem hiding this comment.
Better using the user's actual UserAgent and replace wv 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.
Show mobile version site when logging with facebook and it also fixes Disallow UserAgent issue with Google login.