Internet connection loss not detected
Options
Hello,
I'm currently using PUN v1.66 (I encounter weird input issues with more recent versions)
In my game if I disable the internet connection the game will not detect it nor call OnDisconnectedFromPhoton, I've waited several minutes without any success, on various platforms (pc/wp/android)
Is there something specific to do in such case? Implement a manual timeout for example?
Regards
I'm currently using PUN v1.66 (I encounter weird input issues with more recent versions)
In my game if I disable the internet connection the game will not detect it nor call OnDisconnectedFromPhoton, I've waited several minutes without any success, on various platforms (pc/wp/android)
Is there something specific to do in such case? Implement a manual timeout for example?
Regards
0
Comments
-
Hi @XenoBits,
Please take a look atPhotonNetwork.BackgroundTimeout
maybe you need to change its value.
You can read changelog.txt from package (or "release history").0 -
Hello
thank you for your answer!
unfortunately it does not seem to fix my issue if I set a low BackgroundTimeout, from what I understand it will be used only if app is in background.
do you see any other way to check if I'm still connected to photon?0 -
I've solved the issue by making a rpc call via server periodically, but I guess there must be a more proper way to do that0
-
Hi,
Check this instead, much better than rpcs.
http://forum.photonengine.com/discussion/8550/photon-not-disconnecting-if-we-disconnect-internet-while-connected#latest
bye,
Jean0