Ok I seemed to have resolve the issue,to modify a subscriber is not available in the sample code for Draw together app so I just gave up and coded my own subscriber. A sample is like this one below
groupStateObserver.$isEligibleForGroupSession
.receive(on: DispatchQueue.main)
.assign(to: \.ready, on: self)
.store(in: &subscriptions)
Post
Replies
Boosts
Views
Activity
Hello @gchiste
Thank you for your response. I just had a question regarding the approach you suggested. Since the players are already connected via the GameKit matchmaking server, would it be necessary to establish a connection between the two players as you have explained on step 1 ?.
@Engineer
I understand that the API is deprecated.When it comes to using the GKVoiceChat for random online players, the voice chat has issues simply working. I followed how it was implemented on [creating real time games apple] website.(https://developer.apple.com/documentation/gamekit/creating_real-time_games/) but whenever I start an online match it fails to establish a voice chat.
When I tried to use GKVoiceChat.PlayerState to figure out what is going on the voice chat player state was showing unknown for both players.