Unknown error persists indefinitely after dropped connection is restored
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 duringany 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 (notperforming a refresh or other data operation) the interrupted connection does not put the app into this state... only if the connection is lost duringa 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?
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.