You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swiping to skip an upcoming alarm is not supported on Android below api level 21 / LOLLIPOP.
In skipAlarm code relying on JobScheduler/JobService is intentionally not executed on earlier Android versions:
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP [....]
Android recommends using WorkManager as a replacement to JobScheduler/JobService.
Using WorkManager, the app would be compatible with all Android versions from api level 14, with additional advantages:
The major advantage of using WorkManageris that it helps to build battery-friendly apps. Besides battery optimization, it also has several other key benefits:
Simpler and consistent API
Works back to API level 14
Works even without google play service. For example, FirebaseJobScheduler requires google play to schedule the Job.
Persist scheduled work across app updates and device restarts
Ability to observe Job status
Define the conditions for your work to run using Work Constraints. (For example: run only when your device is idle)
Allows you to schedule work to run either onetime or repeatedly
Provides flexible retry mechanism
Allows to configure exponential back-off
Can integrate seamlessly with RxJava and Coroutines
Flexibility to plug custom asynchronous APIs.
Chain multiple dependent tasks together and also defines the order to run
Improves app startup time and also reduces crash rate.
The text was updated successfully, but these errors were encountered:
Swiping to skip an upcoming alarm is not supported on Android below api level 21 / LOLLIPOP.
In skipAlarm code relying on JobScheduler/JobService is intentionally not executed on earlier Android versions:
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP [....]
Android recommends using WorkManager as a replacement to JobScheduler/JobService.
Using WorkManager, the app would be compatible with all Android versions from api level 14, with additional advantages:
https://tedblob.com/android-workmanager-vs-jobscheduler/
Android WorkManager benefits over JobScheduler
The major advantage of using WorkManageris that it helps to build battery-friendly apps. Besides battery optimization, it also has several other key benefits:
Simpler and consistent API
Works back to API level 14
Works even without google play service. For example, FirebaseJobScheduler requires google play to schedule the Job.
Persist scheduled work across app updates and device restarts
Ability to observe Job status
Define the conditions for your work to run using Work Constraints. (For example: run only when your device is idle)
Allows you to schedule work to run either onetime or repeatedly
Provides flexible retry mechanism
Allows to configure exponential back-off
Can integrate seamlessly with RxJava and Coroutines
Flexibility to plug custom asynchronous APIs.
Chain multiple dependent tasks together and also defines the order to run
Improves app startup time and also reduces crash rate.
The text was updated successfully, but these errors were encountered: