diff --git a/app.json b/app.json index 161fb27c..8074c01d 100644 --- a/app.json +++ b/app.json @@ -19,6 +19,9 @@ "NSAppTransportSecurity": { "NSAllowsArbitraryLoads": true }, + "BGTaskSchedulerPermittedIdentifiers": [ + "com.example.hlsdownload" + ], "UISupportsTrueScreenSizeOnMac": true, "UIFileSharingEnabled": true, "LSSupportsOpeningDocumentsInPlace": true diff --git a/modules/hls-downloader/ios/HlsDownloaderModule.swift b/modules/hls-downloader/ios/HlsDownloaderModule.swift index 36196d3d..4ee5d215 100644 --- a/modules/hls-downloader/ios/HlsDownloaderModule.swift +++ b/modules/hls-downloader/ios/HlsDownloaderModule.swift @@ -63,7 +63,7 @@ public class HlsDownloaderModule: Module { } let configuration = URLSessionConfiguration.background( - withIdentifier: "com.example.hlsdownload.\(providedId)") + withIdentifier: "com.streamyfin.hlsdownload") configuration.allowsCellularAccess = true configuration.sessionSendsLaunchEvents = true configuration.isDiscretionary = false