Sign In Register

How can we help you today?

Start a new topic
Answered

onPlayerConnect event.

Hello,

RTSession.onPlayerConnect event, when it happens?

I never get this to work.

I have two-player game, using sdk for iOS. 

So, i've created a match and assigned the real-time script.

Docs says, this event called when player is connected to the RT-Session, but i can't find any way to connect player to the session.

I've setup my match in the following way:

GSMatchmakingRequest 

Once matchFoundMessage arrives, i'm sending

GSMatchDetailsRequest

then

GSCreateChallengeRequest 

Don't know if this is right way to create the match for two players.

But there's lack of tutorials for iOS framework.

But, at some time when challenges being set i need to initialize some variables on cloud code side. The only place, where i can do is RTSession, where the code executes for both players, not per each of them. But RTSession.* listeners doesn't get called. Need some help here.



Best Answer
Hey There,

Are you using our iOS SDK from here -> [https://bitbucket.org/gamesparks/gamesparks-ios-sdk]
Or our Unity3D SDK with iOS as the platform?

Our base iOS SDK does not have real-time support. So setting up matches as RT will have no effect. The RT script may initialize but it will never be able to have player connect to it as this required setup on the client.

Does that makes sense?
Sorry we do not support this SDK at this time.

Sean

 

1 Comment

Answer
Hey There,

Are you using our iOS SDK from here -> [https://bitbucket.org/gamesparks/gamesparks-ios-sdk]
Or our Unity3D SDK with iOS as the platform?

Our base iOS SDK does not have real-time support. So setting up matches as RT will have no effect. The RT script may initialize but it will never be able to have player connect to it as this required setup on the client.

Does that makes sense?
Sorry we do not support this SDK at this time.

Sean

 

Login to post a comment