I’ve been doing a lot of work sending and receiving data from a database within my hype documents however I’m having some issues with problems that occur if the users internet connection drops.
For example, my JavaScript functions still initiate if there’s no internet connection and throws up warning in the developer console however my hype document acts as if the action was completed as it should. This is mainly an issue with the use of Ajax to send and receive data from the database.
So I was wondering if anyone had a solution for this? I was thinking of maybe adding some lines of code at the start of every connection reliant JavaScript function to check the connection or a new JavaScript function which checks internet connection at the start of a scene (then maybe direct to another scene if there’s no connection detected).
What avenue does everyone think I should take to solve this?