android-workmanager Questions

3

Solved

Let's say we are developing a messaging app where we want to send messages into given conversations where the order of those messages is important in that conversation only, and if the app is put t...
Susannahsusanne asked 28/10, 2018 at 16:45

3

Solved

I'm new to this so do let me know if the question is badly worded! I have an Android app that needs to execute a task roughly every 15 minutes even if the phone is on lock. The context is: - Im tar...

2

Solved

If I have a PeriodicWorkRequest I can set a time intervall - which minimum is 15 minutes. But how can I test if my doWork() method is working without waiting for 15 minutes? Is it maybe possible t...
Backwater asked 5/11, 2018 at 17:25

2

In order to test the recurring work, I need to wait for a whole 15 minutes (reference) to test the recurrence and this is really not efficient. Is there a better and quicker way for developers to t...
Hadrian asked 27/8, 2018 at 12:37

2

Solved

I want to display a notification while a Worker is running in the background. I can do that with something like the code below: override suspend fun doWork(): Result { val manager = NotificationM...
Inflexed asked 15/3, 2020 at 14:15

0

I want to download certain files from the server at the start of the app .So I tried using Work Manager which gets enqueued from my custom Application class.But the Worker class is not getting trig...
Acetylene asked 11/3, 2020 at 21:57

2

1. Problem description My goal is to build a Flutter app that gets periodic location updates using this workmanager plugin and using this location plugin. But I can't get the Location plugin to be...

0

Help me out please. I have a simpe Retrofit->Repository->MVVM->Fragment app. What it does is provides current weather from OpenWeatherApi. I have my LiveData in my ViewModel observed via Data Bindi...
Lusitania asked 23/2, 2020 at 21:5

2

Solved

I have scoured the internet for info on this subject but nobody seems to be experiencing this issue anymore. Remember this fun error? java.lang.IllegalStateException: JobScheduler 100 job limit...
Mummify asked 13/2, 2020 at 10:46

1

After initialising the the workmanager and creating either of the tasks, If we use any plugins inside of the task execution it isn't recognised and throw an error as bellow MissingPluginException(N...
Flatware asked 2/10, 2019 at 2:33

1

I have an app that uses WorkManager for some scheduled tasks, and I'm testing it with the aid of a bunch of different frameworks. It seems relevant to this issue that I'm using robolectric and of c...
Hallie asked 18/6, 2019 at 0:14

2

Solved

Can't import androidx.work.WorkManager. Working with Studio 3.4
Kurtzig asked 10/2, 2020 at 17:10

1

Work [ id=ab50e634-d315-4566-acc2-fe146a7366e2, tags={ in.offline.usecase.Upload****s$Worker, upload/***/now/* } ] was cancelled java.util.concurrent.CancellationException: Task was cancelled. at ...
Perugia asked 1/2, 2020 at 6:55

1

Solved

Google recently deprecated IntentService as of: https://android.googlesource.com/platform/frameworks/base.git/+/6f8b09029932dfd24945202017639754b00acc2e The docs for IntentService now say: * @de...
Parahydrogen asked 13/1, 2020 at 23:16

0

My goal is to run a simple task once an hour. At application start, I register an unique periodic work with ExistingPeriodicWorkPolicy.KEEP flag. Here's my implementation: public class MyWorker e...
Badminton asked 13/1, 2020 at 22:12

2

Solved

I am using a WorkManager as follows - class LocationWorker( ctx: Context, params: WorkerParameters ) : CoroutineWorker(ctx, params), KoinComponent { private val locationDataRepository: Location...
Ailing asked 20/9, 2019 at 18:2

2

Solved

I have 3 tasks A,B, and C . I want to observe the live data for this chain and have a progress bar that shows the work in progress and once work its completed it should disable the progress bar. ...
Charlenecharleroi asked 4/12, 2018 at 12:45

1

Solved

I use the WorkManager version 2.2.0 to start a Coroutines API Call when the user gets online again. In the example by Google, if I want to change the Thread of my CoroutineWorker from the default ...

3

Solved

My current Android app employs androidx.work:work-runtime:2.2.0-rc01 My Worker code resembles this:- class SyncWorker(context: Context, workerParams: WorkerParameters) : Worker(context, workerPar...
Piling asked 21/8, 2019 at 13:33

2

Solved

Since I need to perform work asynchronously in WorkManager, I need to use the ListenableWorker, which by default runs on the main (UI) thread. Since this work could be a long processing tasks that ...

2

Solved

I have app which needs to sync the data as soon as internet is connected on device. I have the sync work in Worker class and it is working fine. But I need to run this class as soon as internet is...

0

I'm using WorkManager to queue up OneTimeWorkRequests for file uploads. This of course requires network connectivity, and if the device does not have connectivity and the upload fails, it will retr...
Macroscopic asked 25/9, 2019 at 10:14

2

Solved

I want to replace the job scheduling aspect of my existing data syncing system with the new JetPack WorkManager (link to codelabs) component (in a sandbox branch of the app). My existing system wor...
Nutria asked 26/5, 2018 at 11:23

0

In my chat app, I want to read messages from the local database and send them to the server by the work manager and retrofit when the user sends new messages. in parent : OneTimeWorkRequest work...
Biceps asked 21/9, 2019 at 6:21

3

Solved

How do I update the UI from Android WorkManager. Android Workmanager can receive Boolean, Integer, Long, Float, Double, String Documentation says: public Data.Builder putAll (Map<String, Obje...
Cornhusking asked 18/9, 2018 at 12:46

© 2022 - 2024 — McMap. All rights reserved.