π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Show non-debug notifications in iOS foreground
ashilknfbd36714294b
diff --git a/mobile/apps/photos/ios/Runner/AppDelegate.swift b/mobile/apps/photos/ios/Runner/AppDelegate.swiftindex 16ead278f0..06bc852fc1 100644--- a/mobile/apps/photos/ios/Runner/AppDelegate.swift+++ b/mobile/apps/photos/ios/Runner/AppDelegate.swift@@ -99,7 +99,8 @@ import workmanager_apple) {let content = notification.request.content// iOS suppresses foreground notification presentation unless the delegate- // opts in, so explicitly allow only our internal Workmanager debug thread.+ // opts in. Workmanager debug notifications are silent (banner only); all+ // other notifications get the standard banner + sound + badge.if content.threadIdentifier == Self.workmanagerDebugThreadIdentifier {if #available(iOS 14.0, *) {completionHandler([.list, .banner])@@ -109,6 +110,10 @@ import workmanager_applereturn}- completionHandler([])+ if #available(iOS 14.0, *) {+ completionHandler([.list, .banner, .sound, .badge])+ } else {+ completionHandler([.alert, .sound, .badge])+ }}}