Questions tagged [android-jobscheduler]
Use this tag for questions related to the Android JobSchedule API for scheduling various types of jobs against the framework that will be executed in your application's own process.
android-jobscheduler
561
questions
0
votes
0
answers
17
views
Does jobscheduler have features that Workmanager doesn't have
In the android docs it is mentioned that,
In most cases, the best option for running background tasks is to use WorkManager, though in some cases it may be appropriate to use the platform ...
0
votes
0
answers
41
views
Can we use recurring OneTimeWorkRequest that enqueues another OneTimeWorkRequest every 5 mins to achieve period of 5 min using WorkManager in Android?
I am trying to implement a periodic task that should run every 5 mins and check the connectivity of my device to certain URLs every 5 mins. I want to use WorkManager for this. However, the minimum ...
0
votes
0
answers
33
views
JobScheduler doesn't work when application removed from recent app android
I'm building chat application and I'm using pusher service for this. as I need my application received messages when user close the application I used JobService and it works correctly when user ...
1
vote
0
answers
77
views
How does stopping&throttling a Worker/JobScheduler work?
Background
I work on some Worker that could take some time, but probably not too much time and it would be fine to reschedule it again in case the OS said it's too much.
We plan to use ...
0
votes
0
answers
31
views
JobScheduler not scheduling service in every minute
I want to schedule a job starting within 1 minute and continue on same interval. I have tried as below but not working.
public static void scheduleJob(Context context) {
ComponentName ...
1
vote
0
answers
319
views
Android Kotlin: Getting Location = null when device in Doze mode in OEM devices like Samsung, Xiaomi and so on
I used FusedLocationProviderClient with JobScheduler to get current location all time and it working well when app in background.
But getCurrentLocation() method return Location = null when I tested ...
2
votes
1
answer
216
views
Is there a way to detect Network Connected and Disconnected events in Android 13?
I'm looking for a solution to detect Network Events in my Android project, specifically the Connected and Disconnected Events.
With older Android versions, we were able to listen such events from ...
1
vote
1
answer
89
views
Get reminders based on data in a database
I want to get reminders for some Appointments that I have saved in database and they have a notificationTime property witch is the time when a notification needs to be displayed.
My approach so far is ...
0
votes
0
answers
57
views
why my JobService is not working in some devices?
i'm creating and app which notify the user in some specific period of time, i used JobService to let it working automatically and with the app closed, my problem is... there are some devices that my ...
0
votes
0
answers
32
views
Opening a closed application based on events from network
this is my issue:I am developing an emergency app where real time data is important, I have a backend running socket.io, and the client is an android device. Every time the backend emits a new ...
1
vote
0
answers
78
views
JobScheduler not having schedule options in Android Kotlin
I am trying to use JobSchedule in Android Kotlin but not getting the schedule method in JobScheduler.
Here is my code
val jobScheduler = applicationContext
.getSystemService(...
0
votes
1
answer
107
views
What is the best way to schedule a brief task from an already running background service?
I have implemented a NotificationListenerService that runs in the background.
From this services onNotificationPosted method, I would like to be able to queue work to happen in 2 minutes time.
What is ...
0
votes
1
answer
128
views
How can I run code in the background when a new app is installed?
I'd like to run code in my app when any new app is installed. Is there a way to do this?
I'm open to methods that require the use of a foreground service or elevated app permissions.
3
votes
0
answers
227
views
Scheduling a periodic JobService only if it is not scheduled already
I'm trying to schedule a periodic job service like below.
The problem here is that jobScheduler.getPendingJob(jobId) always returns null after the job is executed once, i.e., jobScheduler....
0
votes
1
answer
827
views
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) - dotnet MAUI, with Shiny 3# Alpha Job on Android
Don't have a lot of experience with debugging issues with Android. Have built an app with dotnet MAUI, and since adding a Shiny job to do a Web API call, I'm getting these errors in my logcat:
[07-20 ...