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
0 answers

Firebase Job Dispatcher failing to schedule jobs on One Plus Devices

I am using Firebase Job Dispatcher to schedule jobs Driver driver = new GooglePlayDriver(context); FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(driver); Job pedometerReminderJob = dispatcher.newJobBuilder() …
2
votes
0 answers

FirebaseJobDispacher package not being added to my project after syncing gradle

I am following a Google's tutorial and I've added the following to my project: compile 'com.firebase:firebase-jobdispatcher:0.8.5' But when I attempt to import anything from this package, it's like it wasn't even compiled/implemented at all. I…
user4383363
2
votes
1 answer

Type inference failed. Firebase JobDispatcher

I'm facing the following error on this line: .setService(LocationFirebaseJobService::class.java): Type inference failed. Expected type mismatch: inferred type is Class but Class was expected Here is my…
MS2099
  • 369
  • 2
  • 11
2
votes
1 answer

FirebaseJob Dispatcher: How to specify the number of retries in job with RETRY_POLICY_EXPONENTIAL

How to specify the number of retries in job with retry type RETRY_POLICY_EXPONENTIAL, below is my code val job: Job =dispatcher.newJobBuilder() .setTag("mytesttag") .setService(MyJobService::class.java) …
Akhil
  • 6,667
  • 4
  • 31
  • 61
2
votes
1 answer

Android - run job in Firebase job scheduler at specific date and time

I am using AlarmManager in our app to set alarms that are set at specific date and time. Now recently few users of our app are complaining that these alarms are not popping up. Also, in Android O guidelines, it is mentioned that app should not run…
2
votes
0 answers

App Losing Internet Connection When Going To Sleep Mode

i have a service that fetches location data and a job service that gets triggered every 10 seconds that sends the location data to a server. everything works perfectly but i am noticing that the app stops receiving internet connection after about…
Rashad.Z
  • 2,494
  • 2
  • 27
  • 58
2
votes
1 answer

Firebase Jobdispatcher: Jobs that run endlessly due to an error are never scheduled again

What happens to a recurring job that is not finished due to a crash or Android process cleaning? In my opinion, it is not possible to reschedule it. It will never be executed again. Example public class MyJobService extends JobService { …
almisoft
  • 2,153
  • 2
  • 25
  • 33
2
votes
1 answer

FirebaseJobDispatcher does not schedule job and gives error that there are too many tasks scheduled for this package

When I try to schedule a job using FirebaseJobDispatcher it gives error that there are too many tasks scheduled for this package. I have 5 jobs scheduled. The exact error I get is as follow - NetworkScheduler: Too many tasks scheduled for this…
2
votes
3 answers

firebase job dispatcher is work in dozemode in android.?

I am working on a video call application. While the app is in doze mode call is not established. So I am using alternative firebase job dispatcher so please tell me, does job dispatcher work in dozemode or not?
Surya Prakash Kushawah
  • 3,185
  • 1
  • 22
  • 42
2
votes
1 answer

Robolectric addResolveInfoForIntent not working

With robolectric 3.3, I am trying to get the package manager to return correct values for queryIntentServices so that the Firebase Job Dispatcher works. In my AndroidManifest.xml I have:
mikesol
  • 1,177
  • 1
  • 11
  • 20
2
votes
1 answer

how to run a job service at a given time

i want to create something like a reminder app which notify user at given times , i want to use job scheduler api to achieve this let's say i want to run the service at 9 am and 12 am what should be added in the following code to achieve…
Priyamal
  • 2,919
  • 2
  • 25
  • 52
2
votes
1 answer

JobDispacter vs Android-job(Evernote)

I have a query regarding which API to use for running background jobs for devices which are below 5.1(LOLLIPOP). As JobScheduler API supports only 5.1 and above devices. I wanted to implement a background job API for devices below 5.1. Any one who…
2
votes
1 answer

Use of intent filter for Jobservice of FireBase Jobdispatcher

I have implemented job scheduling using Firebase job dispatcher. In which it was given in the doc that an IntentFilter with a specific action Action should be added to the job service as below
arjun
  • 3,514
  • 4
  • 27
  • 48
2
votes
1 answer

Firebase Job Dispatcher doesn't trigger the service class

I created static methods on an activity to call the jobscheduler Jobdispatcher doesn't dispatch the job, I guess. Please help. The methods in class Add.java public void add_details(String namel,String descl,String timel) { …
Iniyan V
  • 63
  • 7
2
votes
1 answer

Firebase JobDispatcher: is there a Driver that does not require Google Play services?

The Firebase JobDispatcher makes use of a Driver interface that requires Google Play services to work: Driver is an interface that represents a component that can schedule, cancel, and execute Jobs. The only bundled Driver is the GooglePlayDriver,…
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181