reactjs - react-google-login 在 react-web-view 上没有工作
问题描述
我在网络视图中使用谷歌登录时遇到问题反应本机但它在网站上工作
<WebView
userAgent="Chrome/56.0.0.0 Mobile"
ref={this.WEBVIEW_REF}
onNavigationStateChange={this.onNavigationStateChange.bind(this)}
source={{
uri: 'https://siteweb.com'
}}
style={{ marginTop: 15 }}
onLoad={() => this.hideSpinner()}
onError={()=>alert("Something went wrong !! ( check your netinfo )")}
/>
尝试像其他人所说的那样添加 userAgent 但它仍然无法正常工作......
解决方案
推荐阅读
- python - 在pytorch中,我们可以根据样本的标签有条件地训练模型吗?
- android - 强制 Chrome 生成添加到主屏幕的 WebAPK
- c# - GridViews 在多列中
- excel - 在 Excel 中为风数据格式化组合数字
- html - 将页脚粘贴到页面底部
- angular - 如何使用日期管道从UTC转换为角度的本地日期时间?
- c# - 在 Visual Studio 的属性选项卡中对一些属性进行分组
- image - 如何将 Expo Camera(在 React Native 中)拍摄的图像存储到我桌面上的文件夹中并在数据库中记录
- javascript - 在 oracle apex 中提交页面后保持复选框状态相同
- flutter - 如何在颤振中将docx文件转换为pdf