Give the user the possibility to try again if connection failed
This is a critical Fsm.
This Fsm deals with a very specific network status, when it failed to connect. When that happens ( likely because of an Internet connection failure, but the Cloud server service can also be down for various reasons), we need to give the user the ability to attempt connecting again.
For this, there is a simply Built in event PHOTON / FAILED TO CONNECT TO PHOTON that we use to reach the "show error warning and try again button" state, in there, as the states mention, we simply inform the user about the connection failure and present a try again button. We created a special event TRY AGAIN for the occasion used when the user press that button, and attempt connecting again ( in the state "connect")
Photon Actions used:
- Photon Network Connect Using Settings ( in state "connect")