# How do i test gamecenter multiplayer?

**URL:** <https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352>\
**Category:** Newbie Questions\
**Created:** [January 4, 2016, 3:18am UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352 "2016-01-04T03:18:24Z")\
**Posts on this page:** 19\
**Page:** 3

<div class="post-metadata">

**Author:** ![tpjacobson01](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/c57346/32.png) [@tpjacobson01](https://forums.solar2d.com/u/tpjacobson01)\
**Post date:** [January 20, 2016, 1:45pm UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/41 "2016-01-20T13:45:03Z")

</div>

Can’t you just open two simulators?

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [January 20, 2016, 4:20pm UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/42 "2016-01-20T16:20:52Z")

</div>

> [@tpjacobson01](#):
>
> Can’t you just open two simulators?

Going to assume you mean iOS simulators. I have tried this I get unable to create match error

---

<div class="post-metadata">

**Author:** ![bjsorrentino](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@bjsorrentino](https://forums.solar2d.com/u/bjsorrentino)\
**Post date:** [January 20, 2016, 8:33pm UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/43 "2016-01-20T20:33:28Z")

</div>

Hi Scott,

Are you 100% sure that Game Center is being initialized properly? That it’s getting the local player? This might be some other issue before you even attempt to create a match.

Have you tried our Game Center sample app for leaderboards and achievements to check if it’s working with the account that you’ve used to log into GC on the device?

CoronaSDK-XXXX \> SampleCode \> GameNetwork \> GameCenter

Brent

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [January 20, 2016, 8:38pm UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/44 "2016-01-20T20:38:37Z")

</div>

> [@bjsorrentino](#):
>
> Hi Scott,  
> Are you 100% sure that Game Center is being initialized properly? That it’s getting the local player? This might be some other issue before you even attempt to create a match.
> 
> Have you tried our Game Center sample app for leaderboards and achievements to check if it’s working with the account that you’ve used to log into GC on the device?
> 
> CoronaSDK-XXXX \> SampleCode \> GameNetwork \> GameCenter
> 
> Brent

Tried the sample it works fine. I am able to print name but no welcome banner is showing.  
Thanks,  
Scott

---

<div class="post-metadata">

**Author:** ![bjsorrentino](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@bjsorrentino](https://forums.solar2d.com/u/bjsorrentino)\
**Post date:** [January 20, 2016, 9:29pm UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/45 "2016-01-20T21:29:50Z")

</div>

Hi Scott,

I’ve attached a very minimalistic project that I used awhile back to test multiplayer. It worked for me at the time, but I can’t vouch that it’s perfect in every way. Still, it might serve as a method for you to test things on your side.

Brent

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [January 23, 2016, 12:39am UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/46 "2016-01-23T00:39:13Z")

</div>

[quote name=“Brent Sorrentino” post=“317359” timestamp=“1453325390”]Hi Scott, I’ve attached a very minimalistic project that I used awhile back to test multiplayer. It worked for me at the time, but I can’t vouch that it’s perfect in every way. Still, it might serve as a method for you to test things on your side. &nbsp; Brent[/quote] Thanks for this. Found out I just forgot to setup gamecenter group in iTunes connect.

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [January 27, 2016, 11:59pm UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/47 "2016-01-27T23:59:29Z")

</div>

> [@bjsorrentino](#):
>
> Hi Scott,  
> I’ve attached a very minimalistic project that I used awhile back to test multiplayer. It worked for me at the time, but I can’t vouch that it’s perfect in every way. Still, it might serve as a method for you to test things on your side.
> 
> Brent

When I add my identiter, playerTurn does not happen

Just add [com.scotthinc.com](http://com.scotthinc.com) to identiter in build.setttings

---

<div class="post-metadata">

**Author:** ![bjsorrentino](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@bjsorrentino](https://forums.solar2d.com/u/bjsorrentino)\
**Post date:** [January 28, 2016, 12:26am UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/48 "2016-01-28T00:26:08Z")

</div>

Hi Scott,

Game Center multiplayer is a complex machine. Many developers… Corona or otherwise… report issues with it ranging from the version of iOS to the actual device. You can search the Internet for stories of this if you’d like.

Here’s one recent example excerpt from a support case I worked on with another Corona developer, just so you can get an indication of the inconsistency which can occur for (sometimes) no apparent reason whatsoever (meaning, absolutely no change in the Corona code or the devices themselves, but more likely some internal change on Apple’s side):

* * *

_Brent,_

_Thanks for getting back to me. Well, something has changed with Corona’s_

_core (or the GC plugin) and/or iOS and/or the Game Center back end along_

_the way. Today I tested the App Store build on two different iPhone 6_

_devices, an iPad Air, and an iPhone 5, all running iOS 9.1. Results were_

_the same as I’ve been seeing all along (fail). I then tested a 2775 build_

_on those same devices (again, all running iOS 9.1), and the results were_

_flawless. Everything worked perfectly: turns, notifications, 2 player_

_games, 3 player games, everything. Every test, every device. I also tried_

_to test on an iPhone 4 running iOS 7.1.2. Everything behaves like the App_

_Store build on the iPhone 4 running the 2775 build (nothing works), but if_

_I’m playing against a 2775 build on an iOS 9.1 device, turns and everything_

_else work correctly on the iOS 9.1 device._

_Since I had success with the 2775 build, I decided to do a new build with_

_the current Corona public release (2731), and to my surprise everything_

_worked perfectly (same as the 2775 daily build). I know that I have tested_

_with that build before because I always test when a new public release of_

_Corona comes out (in the hopes that something has changed and things are_

_working again)._

_One other note: when I was using iOS 7 on the iPhone 4, the GC sign-in_

_banner had the \*\*\*Sandbox\*\*\* designation on it. I tried to turn that off_

_(because of Apple’s new Sandbox/live server stuff), but found that the_

_“Sandbox” on/off switch did not exist in the “Game Center” portion of the_

_settings app as it usually does in iOS 7. Not sure if that could have been_

_causing issues with that device or not._

_-----_

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [January 28, 2016, 1:25am UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/49 "2016-01-28T01:25:56Z")

</div>

> [@bjsorrentino](#):
>
> Hi Scott,  
> Game Center multiplayer is a complex machine. Many developers… Corona or otherwise… report issues with it ranging from the version of iOS to the actual device. You can search the Internet for stories of this if you’d like.
> 
> Here’s one recent example excerpt from a support case I worked on with another Corona developer, just so you can get an indication of the inconsistency which can occur for (sometimes) no apparent reason whatsoever (meaning, absolutely no change in the Corona code or the devices themselves, but more likely some internal change on Apple’s side):
> 
> * * *
> 
> _Brent,_  
> _Thanks for getting back to me. Well, something has changed with Corona’s_  
> _core (or the GC plugin) and/or iOS and/or the Game Center back end along_  
> _the way. Today I tested the App Store build on two different iPhone 6_  
> _devices, an iPad Air, and an iPhone 5, all running iOS 9.1. Results were_  
> _the same as I’ve been seeing all along (fail). I then tested a 2775 build_  
> _on those same devices (again, all running iOS 9.1), and the results were_  
> _flawless. Everything worked perfectly: turns, notifications, 2 player_  
> _games, 3 player games, everything. Every test, every device. I also tried_  
> _to test on an iPhone 4 running iOS 7.1.2. Everything behaves like the App_  
> _Store build on the iPhone 4 running the 2775 build (nothing works), but if_  
> _I’m playing against a 2775 build on an iOS 9.1 device, turns and everything_  
> _else work correctly on the iOS 9.1 device._
> 
> _Since I had success with the 2775 build, I decided to do a new build with_  
> _the current Corona public release (2731), and to my surprise everything_  
> _worked perfectly (same as the 2775 daily build). I know that I have tested_  
> _with that build before because I always test when a new public release of_  
> _Corona comes out (in the hopes that something has changed and things are_  
> _working again)._
> 
> _One other note: when I was using iOS 7 on the iPhone 4, the GC sign-in_  
> _banner had the \*\*\*Sandbox\*\*\* designation on it. I tried to turn that off_  
> _(because of Apple’s new Sandbox/live server stuff), but found that the_  
> _“Sandbox” on/off switch did not exist in the “Game Center” portion of the_  
> _settings app as it usually does in iOS 7. Not sure if that could have been_  
> _causing issues with that device or not._
> 
> _-----_

It is not the software or device it just the cfidentifier. I have been researching for 7 days now have found nothing like this.  
Thanks,  
Scott

---

<div class="post-metadata">

**Author:** ![bjsorrentino](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@bjsorrentino](https://forums.solar2d.com/u/bjsorrentino)\
**Post date:** [January 28, 2016, 2:22am UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/50 "2016-01-28T02:22:32Z")

</div>

If my test identifier works but yours doesn’t, that seems to point to something in your iTunes Connect setup. Did you set up your app on that side for everything related to multiplayer?

Brent

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [January 28, 2016, 2:25am UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/51 "2016-01-28T02:25:05Z")

</div>

> [@bjsorrentino](#):
>
> If my test identifier works but yours doesn’t, that seems to point to something in your iTunes Connect setup. Did you set up your app on that side for everything related to multiplayer?
> 
> Brent

Should my Game Center be turned on in my 1 version even though I have not published it yet.  
Thanks  
Scott

Edit: here are images I have enabled in Game Center

[https://drive.google.com/file/d/0B5swSg-cH4L6ZXlFR3FrTDF0LW8/view?usp=sharing](https://drive.google.com/file/d/0B5swSg-cH4L6ZXlFR3FrTDF0LW8/view?usp=sharing)

[https://drive.google.com/file/d/0B5swSg-cH4L6OEhBQ2NIN3ZFRVU/view?usp=sharing](https://drive.google.com/file/d/0B5swSg-cH4L6OEhBQ2NIN3ZFRVU/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![simeonaronk](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/94ad74/32.png) [@simeonaronk](https://forums.solar2d.com/u/simeonaronk)\
**Post date:** [January 29, 2016, 4:48am UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/52 "2016-01-29T04:48:18Z")

</div>

Hi,

&nbsp;

&nbsp; I’m new to Game Centre&nbsp;Turn Based Multiplayer Game,I do Some basic Code from the Sample.Once i Tested it in device it works well ,but i faced below Problems.

&nbsp;

1. Player1 Finished Turns , But not Received At Player 2 ( No notification , Some times Shared Data Missing )

&nbsp;

2.Once Player1 Created Match , Want to store The Initial Data(Grid),So Player1 can Get Same Data(Grid),when Logging in Another Device.Even if Player1 Not end His Turn.

&nbsp;

Ex: player1 -\> Create Match -\> Grid Created -\> Go Back to Menu -\> Re enter into Same Match -\> Need Same Grid(Initial) [Even User log in from Diff Device].

&nbsp;

1. Communication Between 2 Devices Failed Some times(low Network),Which Makes game Misleading.

&nbsp;

&nbsp;

Please help me to Solve this.

&nbsp;

Thanks.

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [January 29, 2016, 4:49am UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/53 "2016-01-29T04:49:48Z")

</div>

> [@simeonaronk](#):
>
> Hi,
> 
> I’m new to Game Centre Turn Based Multiplayer Game,I do Some basic Code from the Sample.Once i Tested it in device it works well ,but i faced below Problems.
> 
> 1. Player1 Finished Turns , But not Received At Player 2 ( No notification , Some times Shared Data Missing )
> 
> 2.Once Player1 Created Match , Want to store The Initial Data(Grid),So Player1 can Get Same Data(Grid),when Logging in Another Device.Even if Player1 Not end His Turn.
> 
> Ex: player1 -\> Create Match -\> Grid Created -\> Go Back to Menu -\> Re enter into Same Match -\> Need Same Grid(Initial) [Even User log in from Diff Device].
> 
> 1. Communication Between 2 Devices Failed Some times(low Network),Which Makes game Misleading.
> 
> Please help me to Solve this.
> 
> Thanks.

Same here  
I called apple going to talk to them tomorrow.

---

<div class="post-metadata">

**Author:** ![simeonaronk](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/94ad74/32.png) [@simeonaronk](https://forums.solar2d.com/u/simeonaronk)\
**Post date:** [January 29, 2016, 6:25pm UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/54 "2016-01-29T18:25:50Z")

</div>

No Possible way in Corona to Solve this.

Thanks

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [January 29, 2016, 6:47pm UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/55 "2016-01-29T18:47:17Z")

</div>

> [@simeonaronk](#):
>
> No Possible way in Corona to Solve this.
> 
> Thanks

It is your apple bundle I’d that is the problem if you are having the problem I am having.

---

<div class="post-metadata">

**Author:** ![simeonaronk](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/94ad74/32.png) [@simeonaronk](https://forums.solar2d.com/u/simeonaronk)\
**Post date:** [January 30, 2016, 5:03am UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/56 "2016-01-30T05:03:22Z")

</div>

I’m Not having the Same problem , My App Running well in Device.But Sometimes Communication failed between devices and i need to store data in GC.

Thanks

---

<div class="post-metadata">

**Author:** ![simeonaronk](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/94ad74/32.png) [@simeonaronk](https://forums.solar2d.com/u/simeonaronk)\
**Post date:** [January 31, 2016, 7:12pm UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/57 "2016-01-31T19:12:13Z")

</div>

waiting for suggestions…

---

<div class="post-metadata">

**Author:** ![simeonaronk](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/94ad74/32.png) [@simeonaronk](https://forums.solar2d.com/u/simeonaronk)\
**Post date:** [February 2, 2016, 5:26am UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/58 "2016-02-02T05:26:21Z")

</div>

Handling the Current Player’s Turn

- saveCurrentTurnWithMatchData:completionHandler:

Update the match data without advancing the game to another player.

This method in IOS was used to Update Data in GC , is this Possible in Corona.

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [February 2, 2016, 5:34am UTC](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352/59 "2016-02-02T05:34:30Z")

</div>

> [@simeonaronk](#):
>
> Handling the Current Player’s Turn
> 
> - saveCurrentTurnWithMatchData:completionHandler:
> 
> Update the match data without advancing the game to another player.
> 
> This method in IOS was used to Update Data in GC , is this Possible in Corona.

What if you set&nbsp;nextParticipant&nbsp;to your own gc id?

[https://docs.coronalabs.com/daily/plugin/gameNetwork-apple/request.html#end-turn](https://docs.coronalabs.com/daily/plugin/gameNetwork-apple/request.html#end-turn)

Also if you don’t mind me asking how did your app ready for gamecenter?

Thanks,

Scott

[Previous page](https://forums.solar2d.com/t/how-do-i-test-gamecenter-multiplayer/337352.md?page=2)
