If your app has multitasking use cases, it probably uses Foreground Services to implement long-running user-initiated tasks at a high priority.
I will show you how to use the WorkManager API for correct background work, especially the new Expedited jobs mechanism (available for Android 12) to start background tasks immediately. Also, I would like to show several nuances of migration from FGS to Expedited Jobs.