I have a mobile app used by a team to receive tasks from a dispatcher on iPhone 7 devices. If the cellular/wifi connection is interrupted during any data operation, once the connection is restored, every subsequent attempt to do any operation (i.e. refresh) results in the helpful "An unknown error occurred" message. There is nothing the user can do to correct this once in this state except to close the app and reopen it. This state is permanent and the app is broken until closed and reopened.
If the connection is lost while the app is idle (not performing a refresh or other data operation) the interrupted connection does not put the app into this state... only if the connection is lost during a data operation. This can be easily repeated on a variety of apps by hitting refresh and then turning on airplane mode before the refresh completes.
With an auto refresh occurring and team members moving about a large building with varying degrees of connectivity, this happens frequently enough to be extremely disruptive and problematic. I understand that the data operation cannot complete if the connection is interrupted but the expectation is that once the connection is available again, the app would resume behaving normally. I also already have my data operations checking for connectivity before executing so this is occurring when the connection is lost during an operation (like a patch, refresh, etc.).
Tested and reproduced on iPhone 7 and Android Pixel devices using multiple apps.
Can anyone help... Is there anything that can be done to allow an app to gracefully restore connectivity if lost in this way?
Solved! Go to Solution.
I can confirm that the fix is effective on our fleet of iPhone 7 devices. We now see the "No Internet" and "Reconnected" messages at the bottom of the screen and the app no longer freezes up when connection is restored.
Thanks!
User | Count |
---|---|
183 | |
108 | |
88 | |
44 | |
43 |
User | Count |
---|---|
226 | |
108 | |
105 | |
68 | |
68 |