Hi All,
I have been working on the Offline Design for the Kapsel based Application and while designing the Solution I came across the critical part of the solution where in we need to handle the error handling for offline scenario. As the Application is in offline and we have captured all the service request and which are added to the offline Queue and once the network is available it will sync with the backend. The challenge comes when as the requests are being synced with the OData producer we get all the responses for each requests which if successful then we get relevant http status code for that request and for more details we have error archive, but I don't want to loose the data for failed service request. The Service request once sent we loose the data for that request which I want to retain or cache it on device for small time interval.
I had few options to cache them with Websql and many more but has anyone tried this to restore the data only for failed request (4XX & 5XX http status code). The error handling is fine as we have that mechanism to handle server/client side errors, do we need to write the custom logic completely itself for handling data sets after failed Service request.
Any comment for this scenario will be highly appreciated.
Best Regards
Fenil