How does Mendix know the app is in online/offline state ?

1
I ran into an issue where the user want to be notified when his/her device drops connection. For all intents and purposes it does seem like the App should be aware of the state it is in (for eg. synchronisation it will tell me if I am offline). But I cant seem to find a system-variable that I can use in my nano-flows ??? Is there one ??
asked
2 answers
4

Check out this widget i believe it does exactly what you want. It adds classes to your page so you are able to display some warnings on screen. Still no active display though, For that you probably need to build your own widget. My guess is that this widget wraps some kind of phonegap function/widget that detects whether your device has connectivity.

answered
1

Lex what about "pinging" one/multiple server(s) to check the app's connectivity; https://gist.github.com/madan712/4509039

 

answered