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

FileObserver listening on background, Android O

I have FileObserver in my application, now it runs on the background and if new file registered - instantiate uploading of it to some server in foreground service. In Android O we should use FirebaseJob Dispatcher to do some job in background, but…
3
votes
1 answer

Firebase jobdispatcher not triggering within specified window

I am implementing Firebase Jobdispatcher with trigger time specified between 10 to 20 seconds. This is my code to schedule a job: public static void scheduleCompatibleJob(Context context) { FirebaseJobDispatcher dispatcher = new…
3
votes
0 answers

Periodic Job stops working shortly after being triggered Firebase JobScheduler?

I'm using firebase Job Dispatcher to make a periodic job that is triggered by available network. The problem is that the service runs for about 5 minutes sometimes even less and then it stops completely. I tried connecting and disconnecting to the…
3
votes
1 answer

Change the period of a periodic task in Firebase JobDispatcher?

I was using GCM network manager, but then I heard that Firebase JobDispatcher includes GCM plus other features so I'm trying to use that. I have successfully programmed a periodic task and it works fine, but the problem is that I need the period to…
3
votes
1 answer

How to cancel a recurring job in firebase job dispatcher

I have created a recurring job, I want to cancel the recurring job when some conditions met. final Job.Builder builder = dispatcher.newJobBuilder() .setTag("myJob") .setService(myJobService.class) …
John
  • 8,846
  • 8
  • 50
  • 85
2
votes
1 answer

When migrating from FirebaseJobDispatcher to AndroidX Workmanager: How do I return a ListenableFuture in startWork?

So per the documentation Firebase JobDispatcher is deprecated and should be migrated to use the WorkManager. I was following the migration guide which said the functionality implemented in a JobService should be migrated to a ListenableWorker.…
StarterPack
  • 498
  • 1
  • 7
  • 28
2
votes
1 answer

onStartJob method of JobService executes as soon as job is scheduled

Working on an android app, I am using FirebaseJobDispatcher to run a job after every 1 minute. Problem As soon as i run the app, job executes and then executes after every 1 minute. Question Why is onStartJob called immediately when the job is…
user7500403
2
votes
1 answer

Android Oreo background service is not working in doze mode?

I am using background service to get user location and upload to server. I have used one LocationTrack class which is extending Service class and AlramReciver which is extending BroadcastReciver. I have added all permission in manifest and register…
2
votes
1 answer

Will Android Firebase Job Dispatcher Trigger by Changing Date Time?

I am using Firebase Job Dispatcher to schedule jobs in Android. https://github.com/firebase/firebase-jobdispatcher-android The job is meant to run in every 12 hours. Is it possible to test the job by changing date time of the device to a future…
Midhu
  • 1,647
  • 2
  • 18
  • 29
2
votes
1 answer

Stop scheduled job inside JobService in firebase jobdispatcher

I am using firebase jobdispatcher in my app, but i am facing an issue. i want to stop job after task is completed . i tried calling selfStop() inside onStartJob() method. But its onStopJob() never gets called. As per requirement in my app i am…
Deepak Rathore
  • 617
  • 8
  • 25
2
votes
1 answer

Oppo Realme1 Job Schduler Min interval for Periodic Work is 1 hr

Currently I am using WorkManager 1.0.0-alpha05. I set periodic Work Request using below code. When interval is below 1 hr then In Oppo Realme (Android Version - 8.1.0 , ColorOSVersion V5.0) job execute at 1 hr. When interval greater than 1 hr job…
2
votes
1 answer

Schedule notification at Monday of every week in Android

Want to schedule a notification which will fired at 11 AM of Every Monday of week. I am using firebase job dispatcher for this. Here is code snippet I have implemented but this is not working. Calendar currentDate = Calendar.getInstance(); …
2
votes
1 answer

GCM Network Manager is deprecated. Firebase Jobdispatcher is not working persistently in background?

I heard that GCM get's deprecated on April 11, 2019. I have implemented GCM Network manager in my project, I am running service persistently in the background, though internet connectivity on or off. Firebase job dispatcher is not running like GCM…
2
votes
1 answer

FirebaseJobDispatcher - show notification from JobService

To schedule notification: FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(this)); Job myJob = dispatcher.newJobBuilder() .setService(MyJobService.class) // the JobService that will be called …
user1209216
  • 7,404
  • 12
  • 60
  • 123
2
votes
4 answers

android: scheduling job every hour forever

I have a web service on my server that needs to be pinged every hour. For this, I am using an Android app to ping it every hour. I have tried using Alarm manager but it stops working after few hours and if I swipe exit it. I have tried using service…
1 2
3
10 11