Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): do not pause audio on app start (#16596)

shenlong3b0af1c8a96f
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