Native mobile app --> Show icon for online status

0
Dear community,  I’m stuck at the following problem: I want to show the connection status (online/offline as a symbol) in the App header. The icon should be visible on each page of the app, hence it should be done centrally e.g. in the layout.  Is it possible to achieve this? Or at least a not too complicated workaround? Didn’t find a solution so far.  Thx for any helping ideas! Franz
asked
2 answers
0

In the native mobile recources there is a widget called app events: https://docs.mendix.com/appstore/modules/native-mobile-resources

Here you have an option to do something with network events. For example call a nanoflow to change a boolean if the app goes offline, or show a pop-up message.

answered
0

Hi Franz,

You could create a JavaScript action to check if you Mendix server is available too with

https://github.com/react-native-community/react-native-netinfo#usenetinfo

Cheers, Andries

answered