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
0
votes
1 answer

Implementing Job Dispatcher

I'm trying to implement Job Dispatcher for my project following this tutorial https://github.com/googlearchive/firebase-jobdispatcher-android but couldn't understand how to schedule the job or it's not working. I want to show challenges every week…
0
votes
1 answer

firebase jobdispatcher doesn't schedule my job

in hydration app i have a class to schedule the job`and I planed to run my service after one minute but it doesn't work and there is an error in WaterReminderFirebaseJobService class that say that onstartjob() method must be called on main thread…
0
votes
1 answer

Which worker need to be use when migrating firebase-job-dispatcher to workmanager?

To use WorkManager you have to subclass one of the available Worker classes: ListenableWorker Worker RxWorker CoroutineWorker I want to run the job every 2 hours. Some of the answers mentioned should be use Listenable Worker. I am confusing this…
Krishna
  • 143
  • 2
  • 10
0
votes
1 answer

Broadcast receiver doesn't work after registering in onStartJob

I use FirebaseJobDispatcher and JobService to do some work on the background. Mainly I want to register to a screen on/off receiver. When the job is called for the first time the receiver is registered as it supposed. However, immediately after…
Keselme
  • 3,779
  • 7
  • 36
  • 68
0
votes
0 answers

MediaRecorder does not record audio in the background

We call the startRecord method from the Firebase JobService. When our application is in the foreground, sound recording from the microphone passes without problems. However, if the application is in the background (no foreground activity), the…
0
votes
1 answer

Firebase job service started with big delay

I am testing an application that receives Firebase cloud data messages and processes them in the Firebase job service. Receiving messages in the FirebaseMessagingService occurs instantly and without problems, but the Firebase job service sometimes…
0
votes
1 answer

Sensor event listener not working in background service

I have created a step counter service to log step counts periodically using firebase job dispatcher. The sensor event is working when my app is running and logs the step count and it is not logging when the app is closed. How to listen for a sensor…
0
votes
0 answers

Using FirebaseJobDispatcher

I'm trying to use the FirebaseJobDispatcher for the first time and I got the code below from an example. FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(this)); Job job =…
Arya
  • 8,473
  • 27
  • 105
  • 175
0
votes
1 answer

FirebaseJobDispatcher: When is JobService.onStopJob() called

I've seen questions on the matter. Checked out the source code but still can't figure out why JobService.onStopJob() is not called, after a job was done. Code which constructs the Job: private Job jobFrom(Bundle bundle, int windowStart, int…
Themelis
  • 4,048
  • 2
  • 21
  • 45
0
votes
0 answers

Xamarin Schedule Notifications

I wish to schedule notifications every day at 7:30am, even if the phone has been rebooted or is locked. AlarmManager can do the trick, but it doesn't work if the application has been dismissed/killed. FirebaseJobDispatcher works too, but it doesn't…
Subby
  • 5,370
  • 15
  • 70
  • 125
0
votes
2 answers

Any Update of firebase-dispatcher library for targeting API 26 or more?

I recently get the warning to update the Android Target Version to 26 or more from the Google Play Console. However, I have already set the target SDK to 26. I check the AndroidManifest file and the merged manifest for all the libraries I have…
0
votes
1 answer

IncompatibleClassChangeError with androidx.work.logger

We have updated android.arch.work:work-runtime:1.0.0-beta01 and we are getting a lot of crashes on clients: The method 'void androidx.work.Logger.debug was expected to be of type static but instead was found to be of type virtual at…
0
votes
0 answers

setService(java.lang.Class) in Builder cannot be applied to (java.lang.Class)

Description I want to build notification app which app provide notification every 15 minutes. Build this app i use FirebaseJobDispatcher job scheduler.But when i build my job using newJobBuilder(). but this time when i use setService() method then…
0
votes
1 answer

Should I use Firebase Job Dispatcher

I have an android app that gets FCM Data messages (contains Image URL). When Data Message is received in onMessageReceived() I create a FirebaseJobDispatcher and a Job, then schedule the Job for downloading and saving image in local storage…
0
votes
1 answer

Firebase Job Dispatcher not Scheduling jobs on OREO devices

I have a firebase job dispatcher which is scheduled to run whenever network changes ,the job is working perfectly on a marshmallow device (23 API level) but the same code when run is not scheduling jobs on a oreo device(26 API level) Here is my Job…