Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Player Disconnect Issue GKMatch and Gamekit

i am working with cocos2d game with GameKit. I am creating match with 2 player using GKMatch. All thing is working fine for me but When one player enters the background state or pressing home button , then player is disconnected. I want to run GKMatch instance in background also. Please help me.

Thanks in advance.

like image 459
Nirav Jain Avatar asked Dec 12 '25 19:12

Nirav Jain


1 Answers

I don't think that's possible, after all "background" means the player stopped playing.

While the programming guide might not mention that explicity, it does one thing, namely automatically logging in the player when the application enters foreground, which to me indicates there's simply no player GKMatch could be connected with while the app is in the background.

like image 131
LearnCocos2D Avatar answered Dec 15 '25 21:12

LearnCocos2D



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!