Keeping Photon client connected when changing scene

Hi guys,
probably another basic question for you
I have successfully implemented photon and Playfab in my Corona app. Players can go in the lobby, find a list of players, match with one player and finally I can send data to the two matcehd players. All this work very well in one scene.
So that is my question : now I want to open the Game scene and keep all this up and running so that players stay connected to the lobby and matched together. How can I do that? I have tried to use the composer.setVariable and getVariable function to pass some information but still the client seems to disconnect when I change scene, is that right ?


  • Hi,

    While you hold reference to LoadBalancingClient and call service() on it, all should work. Make sure that this reference persists during scenes change.