Handling errors caused due to No Internet

0
Hi, At many places, I am calling a microflow from inside a nanoflow. Now, if the user loses internet connection, and then clicks on a button which calls a nanoflow, it executes some part of it and then errors out once it encounters a microflow. This is expected, because microflow is a server call. However it is displaying the common error message , which is “An Error occurred, please contact Administrator” instead of displaying it as “Network issue” or something which user can understand that the error is because of no internet. Is there any way to handle this?
asked
2 answers
1

Hi Sri Raghu Katragadda,

You can use error handler in microflow call with custom role back

 

answered
0

Hi Sri Raghu,

You can use IsConnected javascript action in Native Mobile Resource Module to check your network connectivity in your nanoflow before calling the microflow.

Native Mobile Resource:

https://marketplace.mendix.com/link/component/109513

Also, it has other network releated Javascript actions like 

  • IsWifiConnection
  • IsCellularConnection

 

Hope it helps!!!

answered