Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top