diff --git a/ios/App/App/AppDelegate.swift b/ios/App/App/AppDelegate.swift index 26a74dcc..73a88b05 100644 --- a/ios/App/App/AppDelegate.swift +++ b/ios/App/App/AppDelegate.swift @@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // Override point for customization after application launch. let configuration = Realm.Configuration( - schemaVersion: 16, + schemaVersion: 17, migrationBlock: { [weak self] migration, oldSchemaVersion in if (oldSchemaVersion < 1) { self?.logger.log("Realm schema version was \(oldSchemaVersion)") diff --git a/ios/App/App/plugins/AbsDatabase.swift b/ios/App/App/plugins/AbsDatabase.swift index d8ea42e9..76153629 100644 --- a/ios/App/App/plugins/AbsDatabase.swift +++ b/ios/App/App/plugins/AbsDatabase.swift @@ -256,7 +256,9 @@ public class AbsDatabase: CAPPlugin { Database.shared.setDeviceSettings(deviceSettings: settings) -// call.resolve([ "value": [] ]) + // Updates the media notification controls (for allowSeekingOnMediaControls setting) + PlayerHandler.updateRemoteTransportControls() + getDeviceData(call) } diff --git a/ios/App/Shared/player/AudioPlayer.swift b/ios/App/Shared/player/AudioPlayer.swift index ab41797c..2cc60f64 100644 --- a/ios/App/Shared/player/AudioPlayer.swift +++ b/ios/App/Shared/player/AudioPlayer.swift @@ -588,7 +588,7 @@ class AudioPlayer: NSObject { } // MARK: - Now playing - private func setupRemoteTransportControls() { + func setupRemoteTransportControls() { DispatchQueue.runOnMainQueue { UIApplication.shared.beginReceivingRemoteControlEvents() } diff --git a/ios/App/Shared/player/PlayerHandler.swift b/ios/App/Shared/player/PlayerHandler.swift index 718cdf95..c895a2c3 100644 --- a/ios/App/Shared/player/PlayerHandler.swift +++ b/ios/App/Shared/player/PlayerHandler.swift @@ -135,6 +135,10 @@ class PlayerHandler { ) } + public static func updateRemoteTransportControls() { + self.player?.setupRemoteTransportControls() + } + // MARK: - Helper logic private static func cleanupOldSessions(currentSessionId: String?) {