• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

c# - unity Game Center 登录对话框取消后不再显示

[复制链接]
菜鸟教程小白 发表于 2022-12-11 22:16:09 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题

我在将用户登录到 Game Center 时遇到问题。在应用程序完成加载后,我首先显示登录对话框。如果用户取消对话框。该按钮不执行任何操作 - Game Center 对话框未显示。我立即收到错误消息

错误代码:-

_authenticateUsingAlert: Failed to authenticate player with existing credentials.Error: Error Domain=GKErrorDomain Code=6 "The requested operation could not be completed because the local player has not been authenticated." UserInfo={NSLocalizedDescription=The requested operation could not be completed because the local player has not been authenticated

Social.localUser.Authenticate(success => {
            if (success)
                Debug.Log("success authenticate");
            else
                Debug.Log("Failed to authenticate");
        });



Best Answer-推荐答案


这里是您问题的答案:https://stackoverflow.com/a/21132075

Important: Game Kit handles opting out of Game Center across all games that support Game Center. If a player has already declined to create an account, when your game authenticates the player, it is told there is no authenticated player. The player never sees an authentication dialog. Because Game Kit handles this process across all games, your game should not include its own mechanism to disable Game Center authentication or ask a player’s permission to authenticate. Instead, your game should simply authenticate the player every time it launches and respond appropriately when authentication completes.

关于c# - unity Game Center 登录对话框取消后不再显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54820937/

回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝2

帖子830918

发布主题
阅读排行 更多
广告位

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap