How to detect if online or offline?

How can my bubble app detect if the user is online or offline?

For example, if the users internet connection goes down or if he is viewing my app on a mobile device and enters an area with no WIFI and no mobile data, I need to know about it.

Right now I am placing my PC on airplane mode (so no Internet connection) and my app continues to execute database writes with no error message. Is this a bug with the bubble platform?

1 Like