You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Android implementation in this package uses a webview. It needs to be updated to use a Chrome tab, as described by Google. There's a hack in #130 to make it work, but that's going against Google's instructions on how to properly do authorization on android.
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", ""));
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.
Activity
dieseldjango commentedon Aug 14, 2017
This is due to Google disallowing embedded webviews for authorization: https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html.
The Android implementation in this package uses a webview. It needs to be updated to use a Chrome tab, as described by Google. There's a hack in #130 to make it work, but that's going against Google's instructions on how to properly do authorization on android.
ericchan3721 commentedon Apr 12, 2021
Better using the user's actual UserAgent and replace
wvfrom it instead of the hard coded onemWebView.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.