57
Views
1
Comments
Alternative to offline detection

CheckNetworkStatus() doesn't work for me (using PWA on iPhone 6s). I also tried adding the NetworkStatusChanged Block to the bottombar accompanied by a handler. And also I tried calling the GetNetworkStatus with the subsequent GetNetworkStatus.IsOnline. All without any result: the NetworkStatus is always true, no matter what. Therefore, testing the offline branch was not possible for me on my iPhone using PWA.

My final workaround:

In the action (eg. SaveOnClick), create a new flow starting with the communication handler: communication exception

Copy the offline-branch and paste this offline-flow under the communication exception. I also added an "offline" message for more convenient testing.

See attachment as an example of the final result.


SaveOnClick.png
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.