Post

Replies

Boosts

Views

Activity

Reply to Invite players programmatically into a match
Hi, Did you end up having any luck with this? I'm having the same issue with implementing the invitation handler...which has a bunch of deprecated items associated with it in the documentation.https://developer.apple.com/documentation/gamekit/gkmatchmaker/1521060-invitehandlervar inviteHandler: ((GKInvite, [Any]?) -> Void)? { get set }I just want to know how to actually accept an invite? I can send one, and on the test device have a notification banner that launches the app...but what do we do from there?
May ’20
Reply to Invite players programmatically into a match
Thanks for the reply!! Yes, I'm using the GKLocalPlayerListener protocol. I'm at the point where I can receive the invite, have it launch the app and I can even accept the invite it on the test device, and get it to call 'did accept invite'. That's great, but it then gets stuck on the matchmaker, and never calls 'did find match'. What am I missing?
May ’20
Reply to Invite players programmatically into a match
Thank you so much for your help! I'm still struggling though.How would I write this example in Swift? What are we trying to do here? If the VC is showing, accept the invite?? There isn't an "acceptThisInvite" function...How do I accept an invite? This is the piece I'm missing. I'm able to get the app to call "didAcceptInvite", but it never gets to "didFindMatch", which is what starts the game. There must be a step in between... I'm sure Game Center must provide a way to do this?Thank you again,Dan
May ’20