Skip to content

Commit e72cc08

Browse files
user agent issue when use google log in on android
1 parent afaffc9 commit e72cc08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/src/main/java/io/fullstack/oauth/OAuthManagerDialogFragment.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
109109
mWebView.setVisibility(View.VISIBLE);
110110
mWebView.getSettings().setJavaScriptEnabled(true);
111111
mWebView.getSettings().setDomStorageEnabled(true);
112+
mWebView.getSettings().setUserAgentString("Mozilla/5.0 (Linux; Android 4.1.1; Galaxy Nexus Build/JRO03C) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19");
112113

113114

114115
LayoutParams layoutParams = this.getFullscreenLayoutParams(context);

0 commit comments

Comments
 (0)