backgroundtimeout not working in photon2.5
Options
i have using photonnetwork.backgroundtimeout=10 sec it worked it photon2.2 but in photon2.5 it taking 20 sec even i had changed to 10 sec
0
Comments
-
hi @chandru,
I meant how do you actually test the background timeout?
Do you use Unity Editor and disable "RunInBackground"?
What Unity version do you use?
Do you use an Android build?
What device do you use?
Do you check disconnection in logs?
How do you measure this?
Can you update to 2.6 and test also?0 -
@JohnTube mod
* I put my app to background after connected to photon and waited for 10 sec and the disconnection is not happened,I have set background timeout to 10 sec and onapplicationpaused(true) is also called but disconnection not happened in 10 sec it takes longer time.
* disconnection is happeneing but it not happeneing on my specified time 10 sec its disconnecting on its default time 30 sec.
* yes i use android build.
* i have checkd in samsung tab a,honor 7x and much more devices.
* i have replaced with version 2.2 and the disconnection is happening fine in 10 sec.
* i have seen in change log of version 2.3 that background thread will extend for 30 seconds even the main loop is paused,in connectionhandeler scripts keepinalivebackground - 30000 ms and changed to 2000 ms and diconnection is happening in 10 sec.0 -
There are no references to BackgroundTimeout any more.
I assume that it has been renamed keepinalivebackground and PhotonHandler has not been updated accordingly.1 -
PUN2.7 is out (Feb 13, 2019):Renamed: PhotonNetwork.BackgroundTimeout is now PhotonNetwork.KeepAliveInBackground.
Fixed: PhotonNetwork.KeepAliveInBackground now sets the ConnectionHandler.KeepAliveInBackground, which actually affects the background keep-alive.0