Mobile Feature class app-offline only set once?

0
In my mobile offline app I want to inform the user if he/she is online or offline. I made an info page on which I use the Mobile Features CSS classes "app-online” and "app-offline” to display a message. When I go to the info page while being online the message "You are online” is displayed. And when I switch off WiFi and mobile connections the message "You are offline” is displayed. But when I navigate to another page and return to the info page again while still being offline, the "You are online” message is displayed again. Is this app-offline class only set once on the page or am I missing something? I am on Modeller version 7.21.0  
asked
2 answers
2

This problem has been solved in the latest version of the Mobile Features widget.

It occurred when navigating from a page with one layout to a page with another layout.

answered
0

Alternatively, or when your app is a offline PWA (which can’t use the Mobile Features widget) you can create a very simple javascript action to check for this in a nanoflow using 

navigator.onLine

 

answered