Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Allow internal iOS background processing on battery

laurenspriem39629016cdb9
diff --git a/mobile/apps/photos/changes/ios-background-processing-on-battery.md b/mobile/apps/photos/changes/ios-background-processing-on-battery.md
new file mode 100644
index 0000000000..c9e2f1b3a4
--- /dev/null
+++ b/mobile/apps/photos/changes/ios-background-processing-on-battery.md
@@ -0,0 +1 @@
+- Internal users on iOS can now run background sync and ML processing without connecting their device to power.
diff --git a/mobile/apps/photos/lib/utils/background_tasks.dart b/mobile/apps/photos/lib/utils/background_tasks.dart
index 5055ad99c0..4577296e04 100644
--- a/mobile/apps/photos/lib/utils/background_tasks.dart
+++ b/mobile/apps/photos/lib/utils/background_tasks.dart
@@ -136,7 +136,7 @@ class BackgroundTasks {
? const Duration(hours: 2)
: null,
requiresNetwork: true,
- requiresCharging: true,
+ requiresCharging: !Platform.isIOS,
requiresDeviceIdle: Platform.isAndroid,
runBudget: Platform.isIOS
? BgTaskUtils.taskTimeoutFor(