mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-01 19:48:28 +01:00
fix: background process needs to be declared
This commit is contained in:
3
app.json
3
app.json
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user