当我将构建发布 apk 时,React 本机 Google 登录失败 [英] React native Google Signin Fail When i will build release apk

查看:39
本文介绍了当我将构建发布 apk 时,React 本机 Google 登录失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将使用 google 登录它正在工作,但每当我创建发布版本时,它都无法工作

I will signin with google it's working but whenever I'll create release build it not working

GoogleErrorcode : DEVELOPERERROR

推荐答案

经过多次尝试,我得到了解决方案.

After than many time trying i got the solution.

在 GoogleSignin.configure 中,我放置了 android 客户端,这就是为什么我收到错误

In GoogleSignin.configure i was place android client it, that why i getting the error

最后,我将放置网络客户端 ID(此处)

Finally i will place the web client id(Here)

GoogleSignin.configure({
  iosClientId: 'client ID',
  webClientId: 'My Web client ID'
})

这篇关于当我将构建发布 apk 时,React 本机 Google 登录失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆