I am working on android application which is driver application. The main of the driver application is to deliver the orders for the a particular client.
The driver will received a bulk of orders and he can change the status of each one e.g. (in_transit, on hold, delivered, canceled, rejected). Once the internet connection is dropped the driver is blocked from any action.
My goal is how can i make the application running in offline mode, once the internet connection is dropped the driver is still can take an action of each order and he can change the status locally for each one from new to in_transit to deliver and so one. And once the internet connection is back i can sync/push the data to server.
So my questions are: - How can i do that? - What should i saved to sync the api requests or order status?
Thanks,
You can follow these steps in your app:
This way, you can make the driver deliver the items without having internet at times, and as soon as the internet is available, your background service will upload the status to the server.