PhotonNetwork.isConnected is even true if I have no internet access
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on PUN.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
PhotonNetwork.isConnected is even true if I have no internet access
YannickAtTuring
2020-09-08 11:59:52
I'm trying to activate offline mode if the device is not connected to the internet at the start. How do I detect this using photonNetwork?
I tried checking PhotonNetwork.isConnected but to my surprise, even if I pull out my internet cable (and my device has no wifi access), the bool is still true.
So, if isConnected won't tell me if I'm connected, what will?
Thank you for reading
Comments
YannickAtTuring
2020-09-14 10:24:06
My solution to this is now to check for the bool in the update rather than in the start method.
Back to top