Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/201.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
Android 使用google oauth登录返回;代码:1“;_Android_Google Oauth_Nativescript - Fatal编程技术网

Android 使用google oauth登录返回;代码:1“;

Android 使用google oauth登录返回;代码:1“;,android,google-oauth,nativescript,Android,Google Oauth,Nativescript,我正在尝试将谷歌登录添加到我的android应用程序中。我安装了nativescript google login ant,做了我应该做的一切,并重定向到google的登录窗口。但在我插入我的详细信息而不是获取令牌和用户信息后,我得到以下信息: { "provider": "google", "code": 1 } 我的google init看起来是这样的: google.GoogleLogin

我正在尝试将谷歌登录添加到我的android应用程序中。我安装了nativescript google login ant,做了我应该做的一切,并重定向到google的登录窗口。但在我插入我的详细信息而不是获取令牌和用户信息后,我得到以下信息:

   {
       "provider": "google",
       "code": 1
   }
我的google init看起来是这样的:

google.GoogleLogin.init({
            google: {
                initialize: true,
                serverClientId: "<client id of a web client for oauth 2.0>",
                clientId: "<cient id for android>",
                isRequestAuthCode: true
            },
            activity: application.android.foregroundActivity
        })
google.GoogleLogin.init({
谷歌:{
初始化:true,
serverClientId:“”,
客户ID:“,
isRequestAuthCode:true
},
活动:application.android.foregroundActivity
})

我错过了什么?

@DaImTo感谢您的快速回复。我已经检查了这个线程,它是关闭的,没有实际的答案。我只是在那里发表了评论,希望能得到它