【发布时间】:2019-07-08 02:49:09
【问题描述】:
我正在开发一款安卓游戏。我正在使用真实设备进行测试。该游戏使用谷歌游戏服务。当我试图实现游戏服务登录授权失败统一。该错误仅在使用EnableSavedGames() 时出现。如果我不使用EnableSavedGames(),那么我可以登录。谁能帮我解决这个问题。
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine.SocialPlatforms;
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
// enables saving game progress.
.EnableSavedGames()
.Build();
PlayGamesPlatform.InitializeInstance(config);
// recommended for debugging:
PlayGamesPlatform.DebugLogEnabled = true;
// Activate the Google Play Games platform
PlayGamesPlatform.Activate();
登录代码
Social.localUser.Authenticate((bool success) => {
// handle success or failure
});
【问题讨论】:
-
您的帐户电子邮件是否在 Google Play 控制台的测试人员部分?
标签: android unity3d google-play-services google-play-games