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

Firebase Jobdispatcher - to use or not to use

I am developing an App, a simple, but hopefully addictive little game. The user has to solve predefined levels, as quick as possible. Information on the levels is stored online in an MySQL database, which also contains the average time it took all…
MWB
  • 1,830
  • 1
  • 17
  • 38
0
votes
1 answer

How to use Firebase JobDispatcher for async reconnection of nv-websocket-client?

In an Android app (with minSdkVersion 16) I use the nv-websocket-client library: public class MainActivity extends AppCompatActivity { private WebSocket mWs; private WebSocketFactory mWsFactory = new WebSocketFactory(); private…
0
votes
1 answer

Multiple services using Firebase job dispatcher in android

For an android app, i want start three services using firebase job dispatcher on different days. Can I use same FirebaseDispatcher object for all the three jobs?. Meanwhile, How to maintain same FirebaseDispatcher object even though app is closed?.…
sathish
  • 11
  • 7
0
votes
1 answer

Firebase Job Dispatcher

I'm creating an application which needs to send a request to an API. This request has to be send every 2 minutes. To do this I'm using Firebase Job Dispatcher The problem is that the first request is send at time but the next ones are sent with a…
dev
  • 3
  • 2
0
votes
1 answer

Http request in background with Firebase job dispatcher: asynchronous or synchronous?

I am using Firebase Job Dispatcher and setting it up like described in https://github.com/firebase/firebase-jobdispatcher-android/blob/master/README.md. The job to be scheduled is a http request. The http request could run while the app is on the…
0
votes
1 answer

Firebase Job Dispatcher not triggering at specified time, date as daily/weekly etc

Job myJob = dispatcher.newJobBuilder() // the JobService that will be called .setService(MyJobService.class) // uniquely identifies the job .setTag("my-unique-tag") …
0
votes
2 answers

Replacing my (resource intensive) service

I have an app that to displays new data in a notification. This data is provided by a network device. I can query this device and compare it the cached data in my service to determine if the notification needs to be updated. My app has a service…
Beuz
  • 193
  • 1
  • 12
0
votes
2 answers

Using Main Thread to Trigger a Firebase JobDispatcher into BG Thread

I'm currently using Firebase JobDispatcher to run a periodic check in the background using the service intent (registered on boot, install & update). This is working correctly, and it spawns it's own thread separate from the main thread, so I don't…
0
votes
2 answers

Android How schedule task for every night with JobDispatcher api?

i have to download json response from web server on every night,previously i have used AlarmManager for scheduling tasks but i think for this kind of situation JobDispatcher is great because it auto perform task if network available so i don't have…
0
votes
1 answer

How to start task periodically using firebase job scheduler

I used Jobschuler for sending notification every x minutes(determined dynamically) like this ComponentName componentName = new ComponentName(context,ClsJobService.class); JobInfo.Builder builder = new JobInfo.Builder(0, componentName) …
0
votes
2 answers

Why my job is not starting?

I try using JobSchedulers for my chat app (for async send message): val job = dispatcher.newJobBuilder() .setService(BackgroundJobService::class.java) .setTag(BackgroundJobService.TASKTAG_SEND_MESSAGE) …
0
votes
1 answer

Firebase Job Dispatcher Execution Window

Task: I want to fetch user's location between 9:00 AM to 9:00 PM. So, i thought to use Job Scheduler but not able to set it to above time slot. Please help me to understand firebase job scheduler. And please tell me how to set scheduler to above…
0
votes
1 answer

How to use FirebaseJobDispatcher to replace CONNECTIVITY_CHANGE reliably

My app is targeting Android 7, with minimum SDK Android 4. Hence, listening to CONNECTIVITY_CHANGE (Even when the app is killed) no longer work anymore. What I wish to do is Even when my main app is killed, when the internet connectivity change…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
0
votes
0 answers

Receiving regular updates from server

My app requires real time updating of information, i.e updates around every 20 seconds, and the size of the data can vary (can be >4KB). What would be the ideal method of polling the server for data or even somehow pushing the data to the client…
0
votes
1 answer

onSharedPreferenceChanged not working with Firebase job

I have a background service which request new data from the server if new data exists it updates the sharedpreferences in my firebase job there is notification show command that shows notification between 0, 20 sec. Notiifcation is showing up in…
1 2 3
10
11