All network activity stop when app refocused
Hi! I made simple android game with unity networking HLAPI and i have troubles with network activity in my game when it refocusing. All network events doesn't work, but i do not have disconnect.
What can be the problem and what network settings should I pay attention to? I use Unity 5.6.0f3.
Answer by Icyteck01 · May 09, 2017 at 08:48 AM
Maybe set the build to run in background.
I think you should dc your app and re-connect when the app is not in background ijs.
I use Network$$anonymous$$anager and HLAPI, i may call only StartClient() and StopClient() and if i use this it will be new connection, but i need to restore old connection with all objects wich was spawned from this player authority. Is it normal behaviour of the Unity network to work without calling OnDisconnect()? At 5.4 such problems were not, all messages became in the queue and processed after focus the game, at 5.6 - nothing happens.