Handle Selected Turns/Games in iOS Game Center App in Game Center Enabled App

百般思念 提交于 2019-12-10 18:49:53

问题


I am creating a GKTurnBasedMatch Game Center-enabled app. I've successfully implemented GKLocalPlayerListener methods to listen for events, such as player:receivedTurnEventForMatch:didBecomeActive: and other methods. Additionally, if a user taps on an existing match in the GKTurnBasedMatchmakerViewController (for example, if showExistingMatches is set to YES), I can handle the event in the GKTurnBasedMatchmakerViewControllerDelegate method turnBasedMatchmakerViewController:didFindMatch:.

However, I want to handle tapping on the various controls to view a match within the iOS system Game Center app.

For example, if I navigate to the Game Center iOS pre-installed app (not my app), tap on the Turns tab, tap on the row for my app, tap on a match/turn, and then tap on "View Game" or "Accept Invite" or "Play your turn", I want to handle these match-specific actions in my app.

When these items are tapped, my app indeed launches, but as far as I can tell from reading the documentation, there is no way to get extra information about which match the user tapped, so I can appropriately show that match.


回答1:


Apple has chosen to remove this feature.

Their documentation is inaccurate. I opened a bug with Apple to investigate further. Here is the disheartening proof.



来源:https://stackoverflow.com/questions/31275508/handle-selected-turns-games-in-ios-game-center-app-in-game-center-enabled-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!