android-background-work
Installation
SKILL.md
Android Background Work Standards
Priority: P1 (HIGH)
Implementation Guidelines
WorkManager
- CoroutineWorker: Use for all background tasks.
- Constraints: explicit (Require Network, Charging).
- Hilt: Use
@HiltWorkerfor DI integration. Inject dependencies via@AssistedInjectconstructor; bind withHiltWorkerFactoryinWorkManagerconfiguration.
Foreground Services
- Only When Necessary: Use generating visible notifications only for tasks user actively aware of (Playback, Calls, Active Navigation). Otherwise use WorkManager.