谷歌登录使用反应原生的应用程序web视图

问题描述 投票:1回答:1

我已经在react-native中实现了一个web-view

  • 在网页视图中打开网站就说了(example.com)
  • 在(example.com/login)上显示谷歌登录按钮

我试图通过网络视图登录并在应用程序内部的Web视图中打开整个网站

  <View style={{ flex: 1 }}>
    <WebView
      source={{
        uri: "https://example.com"
      }}
      style={{flex: 1}}
    />
  </View>

当我尝试点击谷歌登录按钮时,我收到此错误

enter image description here

reactjs react-native webview google-oauth google-login
1个回答
0
投票

你必须在我的情况下提供用户代理qazxsw poi

User agent 
© www.soinside.com 2019 - 2024. All rights reserved.