Alternative for alarm manager for periodic background tasks

3.2k views Asked by At

I need to allow user to use my app even if network is not available and make server calls when network is available. I am using alarm manager-broadcast receiver- service pattern. I periodically retry to make api calls. I also added the boot receiver. But when user kills the app using overview screen, the alarms are not triggered again. Is there a better way to implement this common scenario?

1

There are 1 answers

0
Sachin Tyagi On

You may use:- 1. JobScheduler 2. SyncAdapter

These will help you in case of periodically retry to make API calls