Google Plus登录名在已签名的离子应用程序中给出错误代码10 [英] Google Plus login gives error code 10 in signed ionic app

查看:171
本文介绍了Google Plus登录名在已签名的离子应用程序中给出错误代码10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用google plus登录名开发ionic应用程序.在开发过程中,它工作正常.但在已签名的apk中,给我错误10. 我的代码在下面

I'm developing an ionic application using google plus login. it was properly work when in developing. but in signed apk its give me error 10.
my code is below

      window.plugins.googleplus.login({
            scopes: 'profile', 
            webClientId: 'xxxxxx.apps.googleusercontent.com',
            offline: true 
      },function (user_data) {
        console.log(user_data)
      },function (msg) {
           alert(msg);
      });

我已经使用realese keystore生成了一个新的SHA1密钥和WebclientId.
我认为这是一个SHA1关键问题,但我还没有解决方案.

I have generated a new SHA1 key and WebclientId by using realese keystore.
I think this is a SHA1 key problem, but i'm not get solution yet.

推荐答案

首先请确保将SHA-1指纹(用于调试和发布模式)保存在Firebase上

First make sure you are saving your SHA-1 fingerprint (for debug and for release mode) on firebase

这个问题持续了好几天,我的应用程序从PC部署到设备上时,在调试和发布模式下运行正常,当我将应用程序发布到Android商店并从那里安装时,登录开始下降问题是发布时默认选择了应用签名... 为了解决这个问题,您必须从android开发人员控制台中获取SHA-1指纹并将其添加到firebase控制台中… 我创建了一个博客文章,在这里对其进行了详细说明 http://www.jomendez.com/2017/08/30/ionic-2-google-sign-in-error-10-with-firebase/

I had this issue for days, my app was working fine when deployed to the device from the PC, in debug and release mode, login started falling when I published my app to the Android store, and install it from there, the problem was that the app signing was selected by default when you publish… In order to fix this you have to get your SHA-1 fingerprint from the android developer console and add it to the firebase console… I’ve created a blog post explaining it in details here http://www.jomendez.com/2017/08/30/ionic-2-google-sign-in-error-10-with-firebase/

希望它对您有所帮助;)

Hope it helps you ;)

这篇关于Google Plus登录名在已签名的离子应用程序中给出错误代码10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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