菜鸟教程小白 发表于 2022-12-11 17:04:16

iOS 10 beta,游戏中心,邀请好友不起作用


                                            <p><p>我无法通过 Game Center iOS 10 beta 1 从我的应用程序中邀请 friend 。</p>

<p>我尝试在 iOS 10 上使用 GKMatchMakerViewController,我的应用通过 iMessage 向 friend 发送邀请链接。</p>

<p> friend 收到这样的消息链接:
<a href="https://www.icloud.com/share/0pVZ0ltWfeGmc806iDQMQ8w8A" rel="noreferrer noopener nofollow">https://www.icloud.com/share/0pVZ0ltWfeGmc806iDQMQ8w8A</a> ,
但是链接失效了。</p>

<p> friend 打开链接并从 iCloud 测试版获取页面,其中显示“需要软件更新”
要接受游戏邀请,您需要 iOS 10 或 Mac OS X 10.12 或更高版本。”。</p>

<p> friend 在 iOS 9 或 iOS 10 beta 1 上打开链接时出现同样的错误。</p>

<p>我看到了来自 WWDC16 的演示文稿“611_whats_new_in_game_center”和
看到基于消息的邀请运行良好。</p>

<p>我发送邀请的代码非常简单:</p>

<pre><code>UIWindow *window = [ keyWindow];

GKMatchRequest *request = [ init];

GKTurnBasedMatchmakerViewController *mmvc = [ initWithMatchRequest:request];
mmvc.turnBasedMatchmakerDelegate = self;

;
</code></pre>

<p>是我的错吗?能否给我一个提示或代码示例,用于在 iOS 10 的 Game Center 上邀请 friend ?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>iOS 10 beta 6 解决了这个问题。</p></p>
                                   
                                                <p style="font-size: 20px;">关于iOS 10 beta,游戏中心,邀请好友不起作用,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/38522411/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/38522411/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: iOS 10 beta,游戏中心,邀请好友不起作用