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?
Alternative for alarm manager for periodic background tasks
3.2k Views Asked by Yagna At
1
There are 1 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in ANDROID-SERVICE
- How to know when the services has ended
- Service stop doing its job after removing app from recent apps list
- android check location services enabled if using GoogleApiClient
- My service seems to restart when I close my app
- Broadcast not being received Android
- How to use alertDialog in background service
- How to send data from IntentService to Non-Activity class
- android -Can't create handler inside thread that has not called Looper.prepare()
- Alarm receive don't work
- Independent time tracking in android app: service or asynctask?
- AsyncTask is not running when called with execute
- Starting Activity With Intent Flags Stops Service After It Starts
- Android Service vs Simple class with thread for network access
- Android is killing my service?
- Update UI with background service
Related Questions in ALARMMANAGER
- Updating a widget every second with an AlarmManager and IntentService
- How to setup alarms again after reboot
- BroadCastReceiver and AlarmManager Usage
- Android repeating alarm not repeating correctly
- How to Create a Distinct PendingIntents
- set repeated reminder that repeats every month
- alarm manager sometimes firing at wrong times
- Android alarm not cancelling
- Is it possible to do a repeated task even if app is killed from Task Manager?
- Alarm Manager Not Firing
- Stop AlarmManager if the time has passed
- Android : AlarmManager is not working properly. It is not able to set the alarm
- Adding notification using alarm in android
- Alarm Manager doesn't work on time
- AlarmManager only works in near future
Related Questions in ANDROID-ALARMS
- Set repeating alarm multiple times a day and daily
- Alarm Manager Pending Intent not firing Service
- Alternative for alarm manager for periodic background tasks
- alarm manager/ service/ broadcast receiver is not working after app is closed or swiped away from the recent app
- startActivity for URI in Lockscreen on Android Nougat
- Android finish() method is not closing the app but minimizing it
- Which context does BroadcastReceivers receive when listening for BOOT_COMPLETED?
- Latest Android Alarm Clock Build
- AlarmManager: PendingIntent gone after swiping app from recent apps on some devices
- Android Alarm Scheduling with repeats
- RTC_WAKEUP doesn't work on all devices
- Android alarm is 12 hours late
- How to set Alarm for working days in android
- How can I keep track of when my repeating alarms goes off and update the set value?
- How can I set exact, repeating alarms in Android 4.4?
Related Questions in REPEATINGALARM
- Alternative for alarm manager for periodic background tasks
- Android: AlarmManager recuring tasks once a day at midnight
- Local push notification in android not showing when app is closed from multitasking window
- Repeating alarm stops working
- Send Update to Repeating BroadcastReceiver
- A repeating alarm doesn't work if the system time was changed to the past
- how to make Alarm repeats for particular time interval in Xamarin Droid project?
- Android - Update Location every x minutes
- AlarmManager not repeating
- Android. Alarm Manager. Repeating alarm does not fire, and after some time, fires all the alarms at once
- Multiple alarm crash
- I am try to trigger alarm for Every day 12:00 am but why it is trigger after 10/20 minute later of 12:00 am?
- Starting a service via Alarm does not work
- Windows Phone recurring alarms on specific weekdays
- alarm receiver for multiple alarms
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You may use:- 1. JobScheduler 2. SyncAdapter
These will help you in case of periodically retry to make API calls