1 Reply
      Latest reply on May 15, 2020 4:46 AM by JohanHWB
      Dan-Druff Level 1 Level 1 (0 points)

        Hi There,


        I'm having a difficult time trying to implement the Game Center invitation handling...


        The link that is confusing me the most is:




        var inviteHandler: ((GKInvite, [Any]?) -> Void)? { get set } 


        Is this deprecated? How are we to properly receive a GKInvite from a Game Center friend, and then act on it?  I can get a list of the local players friends, and send an invite so that the banner comes up on the test device, which then launches the app...But, This where I'm stuck...what does the 'Invitee' do from there?


        I'd like to autheniticate the player, and then immediately deal with the invitation when the app is launched...What am I missing?


        There's alot of deprecated items in GameKit that haven't seem to updated..Could this be a sign that Apple is moving away from GC, and may no longer support it in the future?


        Any help would be appreciated...Thank You.