How to queue and store an API request to execute once internet connection is restored?
I’m working on adding offline support to my app. My requirement is to queue and temporarily store an API request (including headers, request body, and endpoint) when the user loses internet connection, so that it can be automatically executed once the connection is restored.