What happens on mobile that the client goes to background?
SPF
✭
in Photon Bolt
On mobile phone, what happens if the server client goes to background? And what happens if a non-server client goes to background and comes back into game?
0
Comments
-
Hello @SPF ,
Photon Bolt Free uses underneath Photon Realtime to communicate with the Photon Cloud, please read here about the topic: https://doc.photonengine.com/en-us/realtime/current/troubleshooting/known-issues#mobile_background_apps
Keep in mind that when the peer lost connection with Photon Cloud, it will simply shutdown itself.
When using Photon Bolt Pro, you could increase the connection timeouts while the application is in the background, Bolt will recover and sync the state when both ends come back to the foreground.
--
Ramon Melo
Photon Bolt Team0 -
Thank you @ramonmelo ! Do you have more detailed tutorial, or demo codes, or documentation on this topic with Bolt?0
-
Hello @SPF ,
We have our page for the sample in general, there is nothing towards this as Bolt will take care automatically.
- Getting Started Sample: https://doc.photonengine.com/en-us/bolt/current/demos-and-tutorials/bolt-basics/bolt-101-wizard-setup
- Advanced Tutorial: https://doc.photonengine.com/en-us/bolt/current/demos-and-tutorials/advanced-tutorial/overview
You can react to Bolt events using the GlobalEventListenners (https://doc.photonengine.com/en-us/bolt/current/gameplay/global-callbacks), to respond to a disconnect or shutdown, for example.
--
Ramon Melo
Photon Bolt Team0 -
@ramonmelo Thank you! I've gone through these tutorials very carefully. They're very helpful. But there's nothing related with how to design to cope with the shutdown/disconnect issue.
This is a trivial issue, I'll build my game first and deal with it in the future. I'll come back with more specific scenario0