From 2e0c7abd658cf96c464d893191cd76dc7cf85f74 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 19 Sep 2023 16:39:54 +0700 Subject: [PATCH] fix(mobile): fix background upload regression on Android (#4139) --- mobile/lib/modules/backup/services/backup.service.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mobile/lib/modules/backup/services/backup.service.dart b/mobile/lib/modules/backup/services/backup.service.dart index fe08c9fdef..15cc0c3493 100644 --- a/mobile/lib/modules/backup/services/backup.service.dart +++ b/mobile/lib/modules/backup/services/backup.service.dart @@ -220,7 +220,9 @@ class BackupService { final List duplicatedAssetIds = []; // DON'T KNOW WHY BUT THIS HELPS BACKGROUND BACKUP TO WORK ON IOS - await PhotoManager.requestPermissionExtend(); + if (Platform.isIOS) { + await PhotoManager.requestPermissionExtend(); + } List assetsToUpload = sortAssets // Upload images before video assets