Plugin Update: The arm64 compiler bug is solved and the new Players With PlayerIDs feature is now added to the plugin.
Hi Animonger,
Thanks for creating a great plugin. I am having a issue with IOS 10 turn based game. Wanted to know the best way to debug this.
-
I installed the turn based game on 2 devices
-
Created all the appropriate iTunes connect record
-
When I create a match and invite the other player, it sends a message. When I click on the message nothing happens
I tried to create a auto match on the 2nd device and then checked for existing matches on the first device and it doesn’t show the match… looks like the game center is not passing info from one device to another…
I am lost debugging the issue. any pointers will be helpful.
Thanks,
Ram
Assuming that everything is set up correctly on the Game Center side, it could be that Game Center is a bit flaky today. This happens occasionally and it can be madding for debugging. If Game Center is not working properly you’ll just have to wait a couple of days but in the mean time double check that your iTunes is setup correctly:
Are you able login OK and to post a score to a Leaderboard?
Are you using test AppleIDs to login from your test devices?
Hi Thanks for responding. My game doesn’t have leaderboard. but since you mentioned. I will add some test code and post to the leaderboard and see if that is working.
Also, additionally when I create a game with auto player, I do get back from game center with game id etc.
If you haven’t done so already, I recommend you download the GameKit Tester app I made and compile it:
https://github.com/animonger/corona-sdk-gk-tester
It’s a good way to learn the API and you don’t have to setup iTunes again if you use your existing application name and provisioning profile.
Yeah, I already downloaded and looked at the code, it’s excellent demo for starters like me.
BTW: More update. I am able to get my game working in the realtime game mode. where my app connects from two devices in "autoplay " mode. I am guessing the issue has to do with how the game gets invoked from iMessage (when we click on the iMessage received, when I invite friend from 2nd device). Probably I need to have some kind of event handler in the game to handle the iMessage (not sure). Will update when I find more Info.
Thanks again for the excellent piece plugin.
Ram