Since iOS 13.4 (or 13.4.1) we have started seeing an issue in our hybrid app where if the user is on a slow network and they tap back before all resources have finished loading (by this i mean the page itself has finished loading but other assets and JS files have not finished loading) then an error is thrown:
sometimes, it's thrown twice. if the page in the error is the one the user is navigating away from, then the page they are going back to will continue to load. However if the single error, or the second error (if two are thrown) contain the page begin returned to, loading stops and the page never refreshes.
Im at loss to explain this and the only solution coming to mind is to retry if the page is not loading, though im not keen on this.
It doesn't seem to happen on versions lower than 13.4
Thanks
Code Block Error Domain=NSURLErrorDomain Code=-999 "(null)" UserInfo={NSErrorFailingURLStringKey=https://www.website.com, NSErrorFailingURLKey=https://www.website.com, _WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x2839b46a0>}
sometimes, it's thrown twice. if the page in the error is the one the user is navigating away from, then the page they are going back to will continue to load. However if the single error, or the second error (if two are thrown) contain the page begin returned to, loading stops and the page never refreshes.
Im at loss to explain this and the only solution coming to mind is to retry if the page is not loading, though im not keen on this.
It doesn't seem to happen on versions lower than 13.4
Thanks