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

Is the Firebase JobDispatcher using the JobScheduler?

Since my App has to be available for Android versions 4.x I cannot rely solely on the JobScheduler for background activity. The Firebase JobDispatcher is backwards compatible with the versions I need, so I tested it a bit. My expectation was, that…
Henning
  • 2,202
  • 1
  • 17
  • 38
1
vote
0 answers

Is firebase-jobdispatcher removed from Android 12?

I tired to migrate my form Android 11 to Android 12. Then I ended up with following run time error, Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent Then I have gone…
ThinkAndCode
  • 1,319
  • 3
  • 29
  • 60
1
vote
0 answers

Android - Migrating Recurring Job From Job Dispatcher to Work Manager - Do I need to cancel the old job?

So I am working on removing all background tasks started via JobDispatcher and replacing them with WorkManager. I have most of the work done, but I am curious on how to cancel a job that was set to be recurring with lifetime set to FOREVER. When…
Citut
  • 847
  • 2
  • 10
  • 25
1
vote
1 answer

Confusion between all backgrounding options (and their evolution in time) with Xamarin.Forms Android

I've tested various backgrounding options (xamarin samples, xamarin blog articles, various sources) but I'd like some clarification on the pro/cons of each one, and if some are deprecated/obsolete. My case is an app (wifi, on client premises) that…
1
vote
0 answers

FirebaseJobDispatcher not triggering

I'm trying to read a value from database using firebase job dispatcher, however it is not showing anything. I've created a service class as public class RequestService extends JobService {` BackgroundTask backgroundTask; static String…
Jaspreet Singh
  • 118
  • 1
  • 7
1
vote
0 answers

JobService doesn't stop after calling FirebaseJobDispatcher.cancel()

I have JobService where I register broadcast receiver to listen to screen on/off events. The registration happens in onStartJob(). If I leave the device idle for a couple of minutes, and then call cancel("jobTag") of FirebaseJobDispatcher, I see…
Keselme
  • 3,779
  • 7
  • 36
  • 68
1
vote
1 answer

Continuous execution without service and GUI app

If i close app(System.exit) and Service can do background task( with "android:process", so called another process). But what if i don't even use Service, what can be next alternative? Thread can not be survive from closing(System.exit). Alarm Manger…
1
vote
0 answers

job service not stop when is use continues location update using firebase job schedular

I am using firebase JobScheduler service to continues location update when click "ON" button location update contentiously even app is kill from background. but when I reopen app. again and try to stop location update my job service never…
1
vote
2 answers

Firebase job dispatcher is not working at Oreo devices

i'm using a firebase job dispatcher api to run a service in background. In Marshmallow it is working fine, but while coming to Oreo devices it not working. it is showing error or warning messages like 2019-02-04 14:20:22.285 2525-5699/?…
1
vote
1 answer

Firebase Job Dispatcher not triggering everytime when connected to internet

Below is the code which i am using to schedule job to trigger everytime i connect to internet FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(context)); Job job = dispatcher.newJobBuilder() …
1
vote
0 answers

Android 8.0 background scheduled task with FirebaseJobDispatcher

I have an app that whenever there is internet connection runs a scheduled task using FirebaseJobDispatcher. It works fine up to Nougat but I don't know how to fix it in Oreo 8.0 after background execution limits applied.…
1
vote
1 answer

Cant stop Firebase JobDispatcher service

Possible Duplicate I have created a JobDispatcher service to keep getting user location in background and post user location to server. For that i have created a Job as follow: private void startLocationJobService() { // Check if location…
Nouman Bhatti
  • 1,777
  • 4
  • 28
  • 55
1
vote
2 answers

Class requires api level 21 - JobService ( Firebase Jobdispatcher)

I'm want to implement Firebase JobDispatcher for running background operations. But while Extending JobService, it's showing error as class requires api level 21. Why ?
minato
  • 2,028
  • 1
  • 18
  • 30
1
vote
0 answers

How to test Firebase JobDispatcher Job(Which is run daily)

I had created job run every day. Driver driver = new GooglePlayDriver(this); FirebaseJobDispatcher firebaseJobDispatcher = new FirebaseJobDispatcher(driver); final int periodicity = (int) TimeUnit.DAYS.toSeconds(1); final int…
1
vote
1 answer

Can't create a job using jobDispatcher in android

I created a class and extended it from the jobService class,then i created another class that extends the AsyncTask class and i overidded all there methods that i need but when i set my service class as the service to create the job using jobBuilder…