Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/388.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 爱奥尼亚应用的谷歌认证_Ionic Framework_Oauth_Google Plus - Fatal编程技术网

Ionic framework 爱奥尼亚应用的谷歌认证

Ionic framework 爱奥尼亚应用的谷歌认证,ionic-framework,oauth,google-plus,Ionic Framework,Oauth,Google Plus,我正在使用cordova插件googleplus在我的Ionic应用程序中使用google帐户进行身份验证 我已经完成了中列出的所有步骤,但仍然不起作用。我犯了可怕的12501错误 我有凭据,正在使用以下方法调用身份验证方法: vm.loginWithGoogle = () => { console.log('Login with google', window.plugins.googleplus); window.plugins.googlepl

我正在使用
cordova插件googleplus
在我的Ionic应用程序中使用google帐户进行身份验证

我已经完成了中列出的所有步骤,但仍然不起作用。我犯了可怕的12501错误

我有凭据,正在使用以下方法调用身份验证方法:

    vm.loginWithGoogle = () => {
        console.log('Login with google', window.plugins.googleplus);
        window.plugins.googleplus.login(
            {webClientId:'my-credentials'},
            success => console.log('success', success),
            error => console.log('error', error)
        );
    }

以前有人经历过这个吗?

刚才我正面临这个问题。解决者

  • 在“爱奥尼亚插件添加”中,反转您从谷歌控制台获得的密钥
  • 使用从用于谷歌控制台的keytool生成的密钥为应用程序签名
  • 问候,