Reconnection problems
Project i'm working with is using BR200 as a base. On mobile devices (Poco X3 NFC, iPhone, iPad) we are now facing reconnection problems:
1 Connect as a client and wait for gameplay scene starts
2 Switch for another app for at least 1 minute (do not close the app)
3 return to the game app
Result:
1 ConnectPeerCoroutine (Networking.cs 459) will throw null reference exceptions when we trying to access the properties of gameplay scene context (it probably is null)
2 Debugger will spam with "Failed to resolve scene object with Guid (number of GUID)" (NetworkSceneManager.cs 88)
3 The game will hang on the loading splash screen.
Things to mention:
1 Reconnection in original BR200 project is working just fine
2 Reconnection on app relaunch or reconnection after app switch in less than 1 minute is working just fine
3 Awaiting for scene context to load and awaiting for scene to have object with NetworkGame component solves problem 1, but the other 2 are still here.
4 Scene has large amount of objects
Any ideas how solve any of the resulting problems or to make reconnection wait before scene is fully loaded?