android-workmanager Questions

1

Solved

I need to pass complex object to WorkManager. Or I need to serialize object which contains Livedata and Date. It throws java.lang.IllegalArgumentException: Key cabinId2 has invalid type class com....
Threewheeler asked 27/4, 2019 at 2:48

1

I am trying to make server call using WorkManager. So, I wrote the below Worker class: class ServerCallWorker extends Worker { public ServerCallWorker(@NonNull Context context, @NonNull Work...
Hutch asked 12/11, 2018 at 19:25

2

I want to send offline notification to user periodically at exact time (assume daily 9:00 AM). Right now I was trying workmanager Api but not able to find any method like AlarmsManager's setE...
Knotted asked 20/6, 2018 at 10:2

2

I use the following code to schedule a background job execute every 15 mins. WorkManager workManager = WorkManager.getInstance(); PeriodicWorkRequest ulpBackup; ulpBackup = new PeriodicWorkReque...

1

Solved

Is RECEIVE_BOOT_COMPLETED permission required for WorkManager to reschedule the workers after reboot? if not how WorkManager handle this?
Vaientina asked 26/3, 2019 at 3:10

2

Is there a way to test a PERIODIC worker from WorkManager Google API without waiting at least 15 minutes for every execution? I mean, it is a DEBUG app and I'm running it through Android Studio an...
Augur asked 14/3, 2019 at 21:20

1

I get IllegalAccessException when trying to enqueue work with WorkManager 1.0 stable. Here's the stack trace: E/WM-WorkerFactory: Could not instantiate com.pocket.sdk.util.service.BackgroundSync$S...
Ultimate asked 12/3, 2019 at 11:35

4

Solved

I am trying to use WorkManager 1.0.0-alpha09. and getting this error: Program type already present: com.google.common.util.concurrent.ListenableFuture Message{kind=ERROR, text=Program type alrea...
Wolsky asked 26/9, 2018 at 15:26

3

Solved

I'm trying to use WorkManager from architecture components. I've upgraded the compileSdkVersion and targetSdkVersion from 27 to 28. gradle sync is successfully done. But build-time error keeps popp...

2

I have an worker to do a periodical task. and this worker is called in an activity on create. Every time the activity open there is a new instance created and do the same task in same time in multi...

0

I used WorkManager version android.arch.work:work-runtime:1.0.0-beta03.I used this workmanager for uploading files to server with dynamic interval time using OneTimeWorker. This is what I do. Hope...
Dyak asked 26/2, 2019 at 2:43

1

Solved

I have implemented a scheduled work manager. My idea is to complete a process every 2 hours. But I need guaranteed execution. According to Work Manager's documentation every enqueued process will b...
Intrinsic asked 18/2, 2019 at 11:3

1

UPDATE (21-nov-2019) WorkManager.getInstance(activity).enqueueUniquePeriodicWork("test_work", ExistingPeriodicWorkPolicy.KEEP, PeriodicWorkRequest.Builder(MyWorker::class.java, 15, TimeUnit.MIN...
Alcus asked 14/11, 2018 at 13:56

1

Problem Background Currently, we have facing "Excessive network usage (background)" from Android Vital report. Last 30 days is 0.04%, but we're only Better than 9% Last 30 days - 0.04% Benchmark...
Kopje asked 2/2, 2019 at 2:42

2

Solved

I have two periodic workers scheduled in my app where one worker repeats after 24 hours and another in 15 minutes. Initially on fresh install things work as expected, but after some days I got an ...
Sunstroke asked 31/1, 2019 at 8:38

1

Solved

Does WorkManager have a cap to the number of jobs that run at the same time? Very simple example: Click button, creating 10 one-time jobs Enqueue them all 3 jobs run at a time, instead of all 10...
Prudery asked 30/8, 2018 at 14:33

2

i am trying to write a periodic workmanager script but it just run when i open the app and it just run one time (not periodic) ! here is my main activity : public class MainActivity extends AppCo...
Patchouli asked 30/6, 2018 at 18:46

1

Solved

Im setting PeriodicWorkRequest for 15 minutes. But its repeating sometimes 10 sometimes 17 minutes. How can I set max a few seconds deviation. val workRequest = PeriodicWorkRequest.Builder(Notif...
Disunity asked 14/1, 2019 at 13:3

2

I am using WorkManager to schedule some tasks but the problem is that work manager is executing those tasks { doWork() } more than once in a single call. I am using: 'android.arch.work:work-run...
Theressa asked 24/9, 2018 at 20:59

4

Solved

So from what I read, Dagger doesn't have support for inject in Worker yet. But there are some workarounds as people suggest. I have tried to do it a number of ways following examples online but non...
Intuition asked 20/9, 2018 at 22:24

1

Solved

It's mentioned in WorkManager documentation that cancelling a Worker is best-effort WorkManager makes its best effort to cancel the task, but this is inherently uncertain--the task may already ...

1

In one of my android(with Kotlin) app I want to use WorkManager class as a generic one. This is my class where I want to use it as generic by passing expected params: class CommonWorkManager<P,...
Tantalate asked 19/12, 2018 at 11:39

2

Solved

Currently, I'm using WorkManager 1.0.0-alpha02. def work_version = "1.0.0-alpha02" implementation "android.arch.work:work-runtime:$work_version" // use -ktx for Kotlin // optional - Firebase JobDi...
Refractor asked 2/6, 2018 at 13:42

1

I have tried stack overflow but people only added Android documentation which says it'll work but it doesn't i have also raised an issue in google's issue tracker here. I have tested on Android ve...
Bolshevism asked 11/12, 2018 at 9:31

1

Solved

Now I'm using Firebase for uploading photos and this working great and was able to rebuild this work to use workmanager, but I don't know how to pass content URI trigger to my workmanager builder. ...
Ballew asked 2/12, 2018 at 15:55

© 2022 - 2024 — McMap. All rights reserved.