From 3b0af1c8a96f69481752f39fe15a66f35c561c2b Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Wed, 5 Mar 2025 03:30:01 +0530 Subject: [PATCH] fix(mobile): do not pause audio on app start (#16596) Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- mobile/ios/Runner/AppDelegate.swift | 7 ------- mobile/pubspec.lock | 4 ++-- mobile/pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/mobile/ios/Runner/AppDelegate.swift b/mobile/ios/Runner/AppDelegate.swift index 8f635bc61b..6c749cdb9f 100644 --- a/mobile/ios/Runner/AppDelegate.swift +++ b/mobile/ios/Runner/AppDelegate.swift @@ -18,13 +18,6 @@ import UIKit UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate } - do { - try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default) - try AVAudioSession.sharedInstance().setActive(true) - } catch { - print("Failed to set audio session category. Error: \(error)") - } - GeneratedPluginRegistrant.register(with: self) BackgroundServicePlugin.registerBackgroundProcessing() diff --git a/mobile/pubspec.lock b/mobile/pubspec.lock index 08c71e36f8..1879df2743 100644 --- a/mobile/pubspec.lock +++ b/mobile/pubspec.lock @@ -1012,8 +1012,8 @@ packages: dependency: "direct main" description: path: "." - ref: "4530808" - resolved-ref: "4530808a6d04c9992de184c423c9e87fbf6a53eb" + ref: "5459d54" + resolved-ref: "5459d54cdc1cf4d99e2193b310052f1ebb5dcf43" url: "https://github.com/immich-app/native_video_player" source: git version: "1.3.1" diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml index fe6defe362..f9263ac155 100644 --- a/mobile/pubspec.yaml +++ b/mobile/pubspec.yaml @@ -65,7 +65,7 @@ dependencies: native_video_player: git: url: https://github.com/immich-app/native_video_player - ref: '4530808' + ref: '5459d54' #image editing packages crop_image: ^1.0.13