Android Offline Request with Volley

前端 未结 3 944
臣服心动
臣服心动 2021-02-07 08:17

I want to give to my user a much better offline user experience, therefore, I want to build a Service which stores all POST, DELETE,

3条回答
  •  野性不改
    2021-02-07 08:41

    Take a look at this library that I came across - Android Priority Job Queue.

    You define your background tasks as Jobs and enqueue them to your JobManager instance. Job Manager will take care of prioritization, persistence, load balancing, delaying, network control, grouping etc. It also provides a nice lifecycle for your jobs to provide a better, consistent user experience.

    Also, they monitor network connectivity. When a device is offline, jobs that require network connection won't run until network connectivity is restored.

提交回复
热议问题