did you read the docs? background tasks are run on the whim of the o/s.
https://developer.android.com/topic/libraries/architecture/workmanager
trying putting the device on the charger and see if your background task runs.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Actually i am saving user data(using Sqlite) in offline mode and whenever device connects to internet a service or task should run the job and sent the offline data through the APII have tried shiny.net jobs and that works only for foreground.
Can anyone please help me on this and share any examples
@Anonymous @Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) @Yonglun Liu (Shanghai Wicresoft Co
Thanks in advance
did you read the docs? background tasks are run on the whim of the o/s.
https://developer.android.com/topic/libraries/architecture/workmanager
trying putting the device on the charger and see if your background task runs.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more