Android Battery Optimization Can Silently Kill Immich Photo Backups
Aggressive system-level power management may prevent self-hosted photos from reaching servers, creating a dangerous point of failure for users.
Self-hosted data backups are facing a critical silent failure point on Android devices, where system-level battery optimization can prevent photos from ever reaching the server. This conflict between power saving and data redundancy leaves users vulnerable to permanent data loss if a device is damaged or lost.
An Android Police writer recently discovered that a full week of photos failed to back up to their Immich server because the operating system was killing the app's background workers. The issue was only resolved after the user manually adjusted two specific settings: granting notification permissions and changing the app's battery usage to 'Unrestricted.' According to Oluwaniyi Raji of Android Police, the failure happened because the phone was shutting the app down without notifying the user, stating, "My phone had been shutting the app down, and I hadn't told it not to."
The System Conflict
Immich serves as a high-performance, self-hosted alternative to Google Photos, giving users total control over their data. However, this independence comes with a technical trade-off. Android's battery optimization is designed to kill background workers to preserve power, which inadvertently prevents third-party apps from waking up to perform uploads.
This creates a stark disparity between self-hosted tools and first-party services. Google Photos avoids these failures because its permissions and exemptions are pre-configured at the system level by Google. As Raji noted, "Google Photos never needed me to do any of this. Its permissions and exemptions are set from the moment the phone boots."
Why It Matters
For users migrating from managed cloud services to self-hosted solutions, this represents a dangerous "silent failure." Because Android does not alert the user when a background worker is terminated, the app may appear to be functioning while backups are actually stalled. This creates a false sense of security, where users believe their memories are safely mirrored on a server when they actually exist only on a single, fragile piece of hardware.
What's Next
To combat this, Immich version 3.0 has introduced a new setup flow. The update includes a warning about battery optimization and requires notification access to ensure these warnings can be triggered and seen by the user.
Despite these improvements, some challenges remain. Reports indicate that certain Xiaomi and Samsung devices may still experience background backup failures even after all permissions are granted, occasionally requiring the user to open the app manually to trigger a sync. Users are encouraged to verify their backup status manually in Settings > Apps > Immich > Battery to ensure 'Unrestricted' is selected.