【发布时间】:2016-07-22 09:03:34
【问题描述】:
我无法通过 Game Center iOS 10 beta 1 从我的应用程序中邀请朋友。
我尝试在 iOS 10 上使用 GKMatchMakerViewController,我的应用通过 iMessage 向朋友发送邀请链接。
朋友收到这样的消息链接: https://www.icloud.com/share/0pVZ0ltWfeGmc806iDQMQ8w8A , 但是链接失效了。
朋友打开链接并从 iCloud 测试版获取页面,其中显示“需要软件更新” 要接受游戏邀请,您需要 iOS 10 或 Mac OS X 10.12 或更高版本。”。
朋友在 iOS 9 或 iOS 10 beta 1 上打开链接时出现同样的错误。
我看到了来自 WWDC16 的演示文稿“611_whats_new_in_game_center”和 看到基于消息的邀请运行良好。
我发送邀请的代码非常简单:
UIWindow *window = [[UIApplication sharedApplication] keyWindow];
GKMatchRequest *request = [[GKMatchRequest alloc] init];
GKTurnBasedMatchmakerViewController *mmvc = [[GKTurnBasedMatchmakerViewController alloc] initWithMatchRequest:request];
mmvc.turnBasedMatchmakerDelegate = self;
[window.rootViewController presentViewController:mmvc animated:YES completion:nil];
是我的错吗?能否给我一个提示或代码示例,用于在 iOS 10 的 Game Center 上邀请朋友?
【问题讨论】:
-
我也遇到了新的 TurnBasedMatchMaker 邀请问题。发帖后你有什么进展吗?
-
我还没有找到任何解决方案。
标签: ios game-center ios10