Diagnostic step 1
Verify WorkManager initialization: ensure you initialize WorkManager in Application.onCreate using androidx.work.Configuration if required by plugin; test with a minimal native Android sample to rule out plugin bug.
Generated Oct 3, 2026, 12:35:03 AM
Verify WorkManager initialization: ensure you initialize WorkManager in Application.onCreate using androidx.work.Configuration if required by plugin; test with a minimal native Android sample to rule out plugin bug.
Implement a documented fallback: use a short-lived foreground service for essential syncs (triggered by user action or when app is foreground) and avoid leaving it running permanently. This is reversible and visible to users via notification.
Use high-priority Firebase Cloud Messaging sparingly to wake the app for critical syncs; be mindful that OEMs may still throttle/ignore FCM. Do not abuse high-priority messages to avoid platform penalties.
Add runtime guidance and a one-time onboarding flow that detects aggressive OEM battery management (dumpsys heuristics) and prompts the user to whitelist the app with an ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS intent and directs them to the OEM-specific settings page. Keep this as a last-resort and document why the user is asked to act.
Collect a bugreport (adb bugreport or manufacturer tool) from an affected device showing WorkManager schedules and dumpsys logs and submit to the flutter_workmanager plugin maintainers and OEM vendor if you believe the vendor is blocking standard APIs. Escalate to plugin maintainers only after confirming correct initialization; do not share user-identifying data in bugreports without consent.