From a1f80f7bc388d277bdfcb79c485b68d0c1a74f35 Mon Sep 17 00:00:00 2001 From: Wenqi Li Date: Thu, 27 Jul 2023 22:33:06 +0800 Subject: [PATCH] add storage permission back for iOS versions before iOS14 --- example/lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 69f9715..d5ad526 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -42,7 +42,7 @@ class _MyAppState extends State { Future _promptPermissionSetting() async { if (Platform.isIOS) { - if (await Permission.photos.request().isGranted) { + if (await Permission.photos.request().isGranted || await Permission.storage.request().isGranted) { return true; } }