Questions tagged [firebase-job-dispatcher]

The Firebase JobDispatcher is a library for scheduling background jobs in your Android app.

The Firebase JobDispatcher library provides a JobScheduler-compatible API that works on all recent versions of Android (API level 9+) that have Google Play services installed.

It is available for Android developers: https://github.com/firebase/firebase-jobdispatcher-android

A version for iOS developers is WIP: https://github.com/firebase/firebase-jobdispatcher-ios

159 questions
1
vote
0 answers

Why Job Scheduler is preferred in Oreo?

I used to start LocationService with following command startService(new Intent(MainActivity.this, LocationUpdateService.class)); but since Oreo does not support it, I moved to JobSchedular and now i do this. final int hourly =…
dev90
  • 7,187
  • 15
  • 80
  • 153
1
vote
2 answers

Firebase Job Dispatcher Not Scheduling

I looked at several answers for this but am not getting anywhere. Does anyone know why my FirebaseDispatcher is not executing? I set a trigger window between 1 and 5 seconds just to see if it works. My application launches and this method is called…
Mark F
  • 1,523
  • 3
  • 23
  • 41
1
vote
0 answers

How to create custom constraints for Firebase Job dispatcher?

I need to do a job when the device is charging and if the battery is full or almost full. It's a very demanding job, it will eventually run, but I don't want to risk doing it when my user has just put the device to a quick charge when battery is…
Dpedrinha
  • 3,741
  • 3
  • 38
  • 57
1
vote
0 answers

How to schedule task weekly using firebase job dispatcher?

I have implemented the firebase dispatcher as following- public Job createJob(FirebaseJobDispatcher dispatcher){ return dispatcher.newJobBuilder() //persist the task across boots .setLifetime(Lifetime.FOREVER) …
1
vote
0 answers

How can I override doze mode while the device is moving?

I am coding an app that needs to poll location at specific intervals even when the app is off. I am currently using a Firebase JobDispatcher to get the job done. The code is as follows: BackgroundJob.schedule({ jobKey: backgroundJobKey, …
Thanatos
  • 282
  • 5
  • 18
1
vote
2 answers

Firebase job dispatcher does not trigger my JobService class when running code on my real time device, why?

I am working on a project that uses firebase job dispatcher to schedule a job that runs on intervals. But the thing is, I ran the code on the android studio emulator and it worked just fine. The job was scheduled and I received a toast from the…
1
vote
1 answer

Is it ok to run service every 1 minute forever using Firebase JobDispatcher?

Is it ok to run service every 1 minute forever using Firebase JobDispatcher. what is the recommend interval for Recurring task? FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(context)); Job myJob =…
1
vote
1 answer

Firebase job not persisted

I'm having various issues in setting up a recurring job since Android 8 changes. I choose to use Firebase dispatcher, as its Lifetime.FOREVER sounded promising. My job downloads some k of JSON data and stores it regularly, timing isn't that…
Shine
  • 3,788
  • 1
  • 36
  • 59
1
vote
0 answers

Firebase jobdispatcher should work only when screen is on

I created a widget, that has an internal service that update the data every 15 minutes. For the timer, I am using fire base job service. In order to reduce battery usage, I want to make sure that the jobs will be performed only when the screen is…
Mark R
  • 41
  • 2
1
vote
1 answer

How do we use setMinimumLetancy using FirebaseJobDispatcher?

I am using FirebaseJobDispatcher for posting the data. FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(DetectedActivitiesIntentService.this)); Job myJob = dispatcher.newJobBuilder() …
1
vote
1 answer

evernote/android-job - how to schedule and run periodically

I have tried all the below methods from evernote-android-job. Seems the schedulePeriodicJob method is running in some interval and the scheduleAdvancedJob method run only once. Help me how to set values for setExecutionWindow, setExact and…
Gvtha
  • 1,463
  • 1
  • 11
  • 18
1
vote
0 answers

How to start a job when the screen is turned off?

I am trying to use the Firebase JobDispatcher to adapt my app to the new Oreo limitations. One of the thing that I need to change is a task that need to be executed when the screen is turned off. To do that, I am trying to use the contraint…
Laetan
  • 879
  • 9
  • 26
1
vote
1 answer

Firebase Job Dispatcher interval between jobs increases over time

I am scheduling a job with Firebase Job Dispatcher to be executed periodically every 1 minute. Here is my configuration: Job job = dispatcher.newJobBuilder() .setLifetime(Lifetime.FOREVER) …
Sabid Habib
  • 419
  • 1
  • 4
  • 16
1
vote
2 answers

android - Background service

I am writing android application which will request the data from the server after every 5 minutes and will load it into the sqlite. Later on, the data from the sqlite will be displayed to the user whenever he wants to view the data. Database will…
1
vote
2 answers

Firebase.jobdispatcher with RxJava2 doesn't work asynchronously

I am trying to start Firebase jobdispatcher asynchronously using RxJava2. @Override public boolean onStartJob(JobParameters job) { Completable.fromAction(new Action() { @Override public void run() throws Exception { …
Delphian
  • 1,650
  • 3
  • 15
  • 31