android-workmanager Questions
2
Solved
I had an update with the following code that adds a new periodic worker every three hours.
fun runCouponValidatorWorker() {
val constraints = Constraints.Builder().setRequiredNetworkType(NetworkT...
Cropdusting asked 22/7, 2018 at 12:21
3
Solved
I have the following one-time worker.
// Create a Constraints that defines when the task should run
Constraints constraints = new Constraints.Builder()
.setRequiredNetworkType(NetworkType.UNMETER...
Unwind asked 23/5, 2018 at 10:6
3
I just want to keep bluetooth on, and to do that I listen the bluetooth state and if it is turned of, the broadcast receiver could enable it. And I want it to run when the app is closed too. So I a...
Warrantable asked 10/6, 2019 at 2:12
3
I am trying to make an API call from the doWork() method of WorkManager. I receive MutableLiveData with a list from the response. How do I set this complex object as an output from WorkManager?
Pl...
Sartain asked 22/1, 2020 at 12:46
4
How can I check if the Worker meets Constraints when is enqueued?
For example, if I need to download data from the internet and establish that the Worker only runs if there is an internet connecti...
Wren asked 7/6, 2018 at 21:52
1
I increased the version of my WorkManager to 2.3.4 and there is new lint rule called SpecifyJobSchedulerIdRange with description: "Warn when an app uses JobService but does not specify jobIds for W...
Crocoite asked 6/5, 2020 at 7:42
1
Let's say I want to build an app which requests current location periodically (e.g., every 10 minutes, this number should be configurable) and submits to a server.
I'm aware that Foreground Service...
Mayfield asked 6/10, 2020 at 5:15
5
Solved
Work Manager on Chinese ROMs like Xiaomi and Oppo, when under battery optimization, increase the scheduled delay of work by several hours., however, I have noticed some apps are able to have schedu...
Pivoting asked 25/1, 2020 at 5:7
3
Solved
I am enqueuing a PeriodicWorkRequest through WorkManager, the code mentioned below is working on device having Android OS Nougat also on emulators of Android OS versions 8.1, 9 & 10 but not on ...
Zadoc asked 21/6, 2019 at 5:1
2
Solved
At every app start I enqueue periodic work using ExistingPeriodicWorkPolicy.KEEP, so that no additional work is queued if there is already a schedule.
Let's assume that in a future app update, I ch...
Bogart asked 15/10, 2020 at 9:4
3
I'm trying to use WorkManger by creating a periodic Worker that repeats once every 5 days.
I am using version 1.0.0 of workmanagers on a Huawei Android 7 device (API 24)
android.arch.work:work-ru...
Abscise asked 4/4, 2019 at 9:49
2
Solved
WorkManager.getInstance() is Deprecated in version 2.1.0
dependency :
implementation 'androidx.work:work-runtime:2.1.0'
What are the changes in this method or any other ways?
Spittoon asked 26/7, 2019 at 7:39
3
Solved
val request = PeriodicWorkRequestBuilder<FooWorker>(1, TimeUnit.DAYS).build()
WorkManager.getInstance().enqueueUniquePeriodicWork(
"FOO",
ExistingPeriodicWorkPolicy.REPLACE,
request
)
Th...
Rennin asked 10/10, 2018 at 3:35
0
I am using a worker manager to upload videos along with a notification. When the user tries to upload a video again with an ongoing upload worker job the notification for the second upload is not s...
Palmerpalmerston asked 7/9, 2020 at 12:34
0
I am building an app which creates a service that triggers an alarm when people have birthdays ( At 12.00AM ). The app is based on firebase realtime database.The problem I am facing here is:
The s...
Squama asked 5/8, 2020 at 10:0
1
I figured out this issue when I wasnt getting the notification through workmanager when the app was killed from background tasks in Android 10.
It is working fine for all the android version till A...
Obstacle asked 29/7, 2020 at 6:14
4
Solved
I am using PeriodicWorkRequest to perform a task for me every 15 minutes.
I would like to check, if this periodic work request has been previously scheduled. If not, schedule it.
if (!PreviouslyS...
Rixdollar asked 18/7, 2018 at 11:41
1
Solved
I've just develop an Android app (minSdkVersion 23/ targetSdkVersion 29) that can connect to a BluetoothLE device to obtain data periodically.
Now, in the MainActivity (not the first activity), I d...
Mathur asked 19/7, 2020 at 6:24
4
Solved
We are using OneTimeWorkRequest to start background task in our project.
At application start, we are starting the OneTimeWorkRequest (say req A)
Depends on user's action we start the same work...
Trig asked 7/8, 2018 at 10:49
1
Solved
I want to use WorkManager together with Dagger 2 to inject dependencies into workers. I followed this article to implement the setup. The part of the setup is on-demand initialization. To ach...
Certification asked 20/5, 2020 at 10:7
1
I got an app that uses WorkManager for several background tasks. Lately I see a lot of crashes in my production logs due to WM not being initialized even though I did not disable WorkManagerInitial...
Statutory asked 20/5, 2020 at 22:7
2
Solved
I recently migrated my old app's background services to WorkManager. On recent devices (down to sdk 22 included) it looks OK, running repeating work units and scheduling them even across device reb...
Pile asked 28/10, 2019 at 17:43
2
I am working/trying with download a file with pause and resume functionality using WorkManager with MVVM.
Here I am seeking pause/resume and download percentage progress update with use of WorkMan...
Pyrrho asked 9/11, 2018 at 9:20
2
Solved
I'm using WorkManager 1.0.0-alpha05 to schedule some task to run in the feature that my app may or may not be running. The job I'm going to do requires context so how can I pass context to this?
c...
Empathize asked 1/8, 2018 at 12:34
0
I have just started to explore WorkManager in my app. My app will mostly be offline, so all the data is stored locally using room db. As soon as the device gets connected to a network I want to syn...
Tailor asked 24/5, 2020 at 10:53
© 2022 - 2024 — McMap. All rights reserved.