0
我正在尝试为网络使用Google Play游戏服务。如何要求谷歌+升级谷歌帐户? UserRegistrationIncomplete错误
gapi.load('auth2', function() {
GA = gapi.auth2.init({
client_id: "...",
scope: "https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/games"});
});
我有两个帐户,一个用google +,一个没有。 我可以同时登录。
GA.signIn()
但是,当我试图提交得分
gapi.client.games.scores.submit
的帐户,而谷歌+返回错误
{
"error": {
"errors": [
{
"domain": "global",
"reason": "UserRegistrationIncomplete",
"message": "User has not completed registration."
}
],
"code": 401,
"message": "User has not completed registration."
}
}
我想这意味着客户需要一个谷歌+的升级。
那么,如何在用户登录时要求这个?
或者也许有另一种解决方案?
我查了一下网上有关“UserRegistrationIncomplete”的错误,这是我发现的最接近的东西。 [Google Play游戏 - 如何在登录时要求用户创建一个gamerId帐户](http://stackoverflow.com/questions/41611584)。所以只要检查它是否可以帮助你。关于Google +帐户,一旦您创建了Google帐户,您就可以通过它访问Google +。所以你可以做的是建议使用谷歌帐户登录你的应用程序。 – KENdi
尝试关注此[github](https://github.com/playgameservices/android-basic-samples),并检查它是否适用于您正在工作的应用程序。 – KENdi