Firebase JobDispatcher vs Evernote Android Job - how are these two comparisons?

Currently, in Android, to perform a task periodically depending on time or any other factors, such as charging status, network status, etc., the main three parameters are: Android AlarmManager (which works periodically depending on time), GCMTaskService ( requires Google Play on the device) and JobScheduler (Android version> 21 required). I recently ran into these two job scheduling libraries, one from Firebase and one from Evernote.

My main question is: how do these two libraries compare? What are their strengths and weaknesses?

I want to create an application where the user is reminded of the need to take medication after a certain period of time.

My secondary question is: is a simple AlarmManager enough for this purpose, or should I go to either of these two libraries?

Thanks.

+7
android alarmmanager android-jobscheduler firebase-job-dispatcher android-job
source share
1 answer

How do these two libraries compare? What are their strengths and weaknesses?

There's a good comparison table in the Firebase JobDispatcher github page :

enter image description here

The key difference is the presence of Google Play services: Firebase needs a device to install it, while Evernote is independent of Play Services.

I want to create an application where the user is reminded of the need to take medication after a certain period of time. Would there be a simple AlarmManager for this purpose, or should I go to either of these two libraries?

The rule of thumb is that perhaps you do not need AlarmManager , because it is a rechargeable battery. One of the key features of task managers is that they combine tasks and complete them in one window, so the device will not wake up too often.

It’s better to stick with task dispatchers if you don’t have to take the medicine exactly, such as an alarm clock (for example, you want to notify the user about taking the medicine exactly after 3 hours).

+5
source share

All Articles