Clients on Facebook hangs on if Master Client loose focus

Options
Hi there, if the game is running in Facebook's canvas, it's normal that the game networking hangs on in clients while master client lose focus on the game? (maybe chatting with a friend on facebook chat). And when the master client focuses the game again, the clients run normally. I checked on the Run in Background option in Unity.

I noticed that clients don't get RPC correctly if Master Client loose the focus.

I'm using PUN+, Unity 5, and the game is accesible from Facebook canvas, hosted on Parse hosting.

Thanks!

Comments

  • Well, i'm on the bed right now but I think I got the answer... In my Facebook code I have:

    private void OnHideUnity(bool isGameShown) {

    Debug.Log("OnHideUnity");
    if (!isGameShown)
    {
    // pause the game - we will need to hide
    Time.timeScale = 0;
    }
    else
    {
    // start the game back up - we're getting focus again
    Time.timeScale = 1;
    }
    }

    Tomorrow I will remove that and test if that was the problem.