Game Center Invitations Not Displayed

前端 未结 1 1622
名媛妹妹
名媛妹妹 2021-01-01 03:38

I have been developing a game which allows for multiplayer matches. I had previous tested the multiplayer invitations and they had all worked. Sending a request from one d

相关标签:
1条回答
  • 2021-01-01 04:36

    The only way I could make invites-by-name work is by going to Settings/Notifications/Game Center and making Game Center display Alerts, not Banners.

    If you have GC display alerts, you get a popup box like this:

    enter image description here

    This dialog acts like a big parent. If the user hits Accept, then your [GKMatchmaker sharedMatchmaker].inviteHandler gets invoked.

    If the user hits Decline, then your game never knows that he was invited to any party ever. User hitting Decline means the parent rips up the invitation and never tells his child he got invited to a game at all.

    This is the only way I could get invite-by-name to work.

    0 讨论(0)
提交回复
热议问题