MacOS cannot send and receive Game Center multiplayer Invitation

I'm trying to implement multiplayer invitation from game center for macos, ios, tvos following this https://developer.apple.com/documentation/gamekit/finding_multiple_players_for_a_game?language=objc

Implementation works for tvos and ios, I can invite my friends, Start Game and continue sending data. But macos still doesn't work at all. I tried using build that works on iOS to invite macos player, but my mac cannot even receive the invitation notification from game center (game is installed already on mac).

While from mac, my invitation process is stuck here until it's failed

Is there any specific setting on macos to enable game center invitation?

Answered by martin243 in 777498022

Make sure you have "com.apple.security.network.server" and "com.apple.security.network.client" entitlements in case you have the sandbox on:

https://stackoverflow.com/questions/27728072/game-center-matchmaking-on-os-x-yosemite-not-working

That helped me to be able to send the invites at least. Receiving invites may be a different issue.

Accepted Answer

Make sure you have "com.apple.security.network.server" and "com.apple.security.network.client" entitlements in case you have the sandbox on:

https://stackoverflow.com/questions/27728072/game-center-matchmaking-on-os-x-yosemite-not-working

That helped me to be able to send the invites at least. Receiving invites may be a different issue.

Do you know how fix problem "Retrieving" and disappearing, not redirect to my app when invite a friend to play via gamecenter for iOS?

MacOS cannot send and receive Game Center multiplayer Invitation
 
 
Q