Adam Brown
11/14/2022, 11:07 PMWorkManager
, and it can potentially run for a long time, so I launch it with setExpedited
and setup the ForegroundInfo
to display a progress notification and keep it foreground. But now it fails in Android 12+ because of the new restrictions. Is there now no way to launch a long running task like this from the background? i.e. schedule a job once a week to do a data sync and have it run foreground?Jakub Syty
11/14/2022, 11:13 PMJakub Syty
11/14/2022, 11:15 PMAdam Brown
11/14/2022, 11:19 PMAdam Brown
11/14/2022, 11:35 PMJakub Syty
11/15/2022, 8:57 AMJakub Syty
11/15/2022, 8:58 AMAdam Brown
11/15/2022, 9:45 PM