fix: background process needs to be declared

This commit is contained in:
Fredrik Burmester
2025-02-16 21:43:39 +01:00
parent 78961feb6d
commit e4d2de2f8a
2 changed files with 4 additions and 1 deletions

View File

@@ -19,6 +19,9 @@
"NSAppTransportSecurity": { "NSAppTransportSecurity": {
"NSAllowsArbitraryLoads": true "NSAllowsArbitraryLoads": true
}, },
"BGTaskSchedulerPermittedIdentifiers": [
"com.example.hlsdownload"
],
"UISupportsTrueScreenSizeOnMac": true, "UISupportsTrueScreenSizeOnMac": true,
"UIFileSharingEnabled": true, "UIFileSharingEnabled": true,
"LSSupportsOpeningDocumentsInPlace": true "LSSupportsOpeningDocumentsInPlace": true

View File

@@ -63,7 +63,7 @@ public class HlsDownloaderModule: Module {
} }
let configuration = URLSessionConfiguration.background( let configuration = URLSessionConfiguration.background(
withIdentifier: "com.example.hlsdownload.\(providedId)") withIdentifier: "com.streamyfin.hlsdownload")
configuration.allowsCellularAccess = true configuration.allowsCellularAccess = true
configuration.sessionSendsLaunchEvents = true configuration.sessionSendsLaunchEvents = true
configuration.isDiscretionary = false configuration.isDiscretionary = false