1,357 questions
0
votes
0
answers
41
views
Problem with notifications and periodic background tasks on some devices (WorkManager + Doze mode)
I’m having issues with my Android app’s notification system and scheduled background tasks.
On some devices (such as the Google Pixel 8a), notifications are not received, the database doesn’t update ...
2
votes
1
answer
124
views
Error when running a HiltWorker on app start: NoSuchMethodException
I’m trying to make a Worker run automatically when the app starts for testing purposes. The idea is that when I open the app, the Worker fetches the list of tracked animes and shows a notification for ...
4
votes
0
answers
176
views
Challenges Complying with Android 15 Foreground Service Limits – How to Get Notified During Timeout?
This relates to an unresolved issue on StackOverflow : Android 15 Foreground Service Timeout: How to call Service.stopSelf() when using WorkManager?
We are launching a foreground service in ...
2
votes
0
answers
248
views
Android 15 Foreground Service Timeout: How to call Service.stopSelf() when using WorkManager?
I'm getting the following log message:
Time limit already exhausted for foreground service type dataSync
This happens due to the new timeout limit introduced in Android 15:
https://developer.android....
3
votes
1
answer
83
views
How to fix java.lang.NoSuchMethodException when using a Hilt Worker?
Hilt keeps not initializing the Worker just because of sharedPreferences variable here
@HiltWorker
class AnilistNotificationWorker @AssistedInject constructor(
@Assisted private val context: ...
0
votes
2
answers
96
views
NoSuchMethodException in NotificationSyncWorker with Hilt and WorkManager (Kotlin, Hilt 2.56.2, WorkManager 2.9.0)
I use Hilt with WorkManager to synchronize notifications in the background in my application, but I encounter a java.lang.NoSuchMethodException error when trying to create an instance of ...
1
vote
0
answers
60
views
PeriodicWorkRequest is not being scheduled in my MAUI App
I need some help with my MAUI .NET 9 C# project targeting Android 15 (API 35).
I'm trying to schedule background jobs to run every 60 minutes, even when the app is closed and not in memory.
From my ...
4
votes
1
answer
91
views
Why is network unavailable when WearOS WorkManager runs my job?
I have a background job in a WearOS app that calls an API, updates a Work database, and notifies my tile and complications about the new data.
Sometimes the background job runs, but the network is not ...
2
votes
1
answer
82
views
WorkManager and error: no address associated with hostname
I set a Worker to run at night, with setRequiredNetworkType(NetworkType.CONNECTED) and during the run, one of the errors occurred:
Unable to resolve host "script.googleapis.com": No address ...
0
votes
0
answers
59
views
Why is my Android app not auto-launching during device setup with MDM policy?
I'm developing an Android app that should be automatically installed and launched as part of the device setup process using a Mobile Device Management (MDM) solution. The app's package is configured ...
1
vote
1
answer
82
views
How many times I can reschedule workers with WorkManager is there a quota for this
I'm using WorkManager to show to users some notifications in case of their long inactivity in the app. So basically I detect if user left the app(app went to background or destroyed) in this case I'm ...
2
votes
0
answers
189
views
Why does Flutter WorkManager show the error: "Could not resolve main entrypoint function" and multiple FlutterJNI warnings?
Problem : I'm trying to implement background tasks in my Flutter app to add users online database when device is online using WorkManager. However, after initilaizing the WorkManager and running the ...
1
vote
0
answers
37
views
Why does WorkManager repeat the launch of a successfully completed Worker?
I can't understand why the WorkManager runs the Worker twice, not always just one of the many runs.
For example, method enqueueWorkers receives an array with one element and enqueues it as a ...
2
votes
1
answer
481
views
Why does my WorkManager Work never have Internet connection when running in the background?
I am using WorkManager in my Android application to do some background work.
This work is using the Internet for HTTP POST requests to an API.
With the app running in the foreground everything works ...
0
votes
0
answers
76
views
SQLiteDatabaseLockedException crash on WorkManager
We've recently encountered this crash but haven't been able to identify the root cause, as the error appears to be coming from WorkManager.
Workmanager version: androidx.work:work-runtime-ktx:2.7.0
...