Where do I find pending invitations? GKInvite

Hi all,

As many others inhere I am trying to figure out how gamekit works. At the moment I am able to invite a friend and accept it. But what I am not able to do is to fetch pending invites, if the player missed the notification how can I present missed invitations to the player? Assuming the other side will wait of course to get connected.

User 1 > sends invite to User 2
User 2 > was too late and missed the notification
User 1 > still waiting for User 2 to accept

User 2 > can't find the pending invitation anywhere

what I have so far:


 
Code Block
  func player(_ player: GKPlayer, didAccept invite: GKInvite) {
        pendingInvite = invite
        print("invite = \(invite)")
        GKMatchmaker.shared().match (for: invite, completionHandler: {
            (InvitedMatch, error) in
            if error != nil {
                if let description = error?.localizedDescription {
                    print("Error creating match from invitation: \(description)")
                }
            } else {
                print ( "NO ERROR")
                self.update(with: InvitedMatch)
            }
        })
    }
    func update(with match: GKMatch?) {
        self.multiplayerMatch = match
        self.multiplayerMatch?.delegate = self
        if !multiplayerMatchStarted && multiplayerMatch?.expectedPlayerCount == 0 {
            print ("Ready to start the match MatchMaker")
            delegate?.matchStarted()
        } else {
            print ("no players")
        }
    }

Nobody that knows if it is at all possible?
Where do I find pending invitations? GKInvite
 
 
Q