#StackBounty: #swift #game-center #gamekit #ios14 #gkmatchmaker Cannot send data using GKMatch.sendData(toAllPlayers:, with: ) in IOS 14

Bounty: 50

I am writing a multiplayer game. I am trying to send data from a player to other using below methods

match.send(data, to: [player], dataMode: .reliable)
match.sendData(toAllPlayers: data, with: .reliable)

It works fine on ios 13 but on ios 14 (Beta 2), I see below message

[Error] WARNING: -[GKMatch sendData:toPlayers:dataMode:error:] is
obsoleted. Game Center doesn’t invoke this obsoleted method from
iOS/tvOS 14.0 and macOS 10.16 onwards


Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.