2

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?

Yagna
  • 423
  • 1
  • 5
  • 15

1 Answers1

2

You may use:- 1. JobScheduler 2. SyncAdapter

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

Sachin Tyagi
  • 1,257
  • 15
  • 21