How to decide to invite a friend to the game center?

I am working on a multiplayer game through the game center, and I have one problem. When I try to invite one of my friends, I get a failed status. I tried with a simulator and iphone and with two iphones and always with the same problem.

I was looking for a solution to my problem and found out that there are many developers with this problem. I am using iOS 6 and the application is still in production, so it is in the sandbox.

I use the same code as in the Ray Wenderlich tutorial - CatRace (there are too many people who wrote about this problem, but no one posted the solution.

Does anyone know how to solve this problem?

+2
source share
1 answer

Please check it:

1> You set the Handler prompt immediately after authorizing the local player.
2> The player you are trying to invite has allowed the game to invite in the settings of his account. If you had two test accounts, you might forget that you banned them for both of them. In this case, the push notification for the invitation will not even be sent to another player.
3> Do not use the game center account for testing.

+7
source

Source: https://habr.com/ru/post/1232931/


All Articles