gpt4 book ai didi

c# - 用户无法登录 Google Play 服务

转载 作者:太空宇宙 更新时间:2023-11-03 15:16:02 24 4
gpt4 key购买 nike

用户身份验证在我为 Android 制作的应用程序中不起作用。这是附加到我的主菜单中的空游戏对象的脚本。

void Start()
{

PlayGamesPlatform.Activate();
PlayGamesPlatform.DebugLogEnabled = true;

}

public void LoadScene(string sceneName)
{
SceneManager.LoadScene(sceneName);
}

public void showleaderboard()
{
if(Social.localUser.authenticated)
{
PlayGamesPlatform.Instance.ShowLeaderboardUI("CgkIq82p4qcNEAIQAQ");
}
else
{
Debug.Log("leaderboard not working");
}
}

public void userlogin()
{
Social.localUser.Authenticate((bool success) =>
{
if(success)
{
Debug.Log("Logged in");
}
else
{
Debug.Log("Login failed");
}
});
}

功能附加到按钮,我总是在我的控制台中收到日志“登录失败”。我在能够在其他已发布应用程序中登录 google play 服务的 android 设备上对此进行了测试。

最佳答案

您应该在 Google play 服务面板中将您的帐户添加为测试帐户,否则它将始终是登录失败。

关于c# - 用户无法登录 Google Play 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39063924/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com