mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
ios: dynamic background ids
This commit is contained in:
parent
a9a99cffbf
commit
9c8e4db306
1 changed files with 3 additions and 2 deletions
|
|
@ -22,8 +22,9 @@ class BackgroundWorkerApiImpl: BackgroundWorkerFgHostApi {
|
|||
print("BackgroundWorkerApiImpl:disableUploadWorker Disabled background workers")
|
||||
}
|
||||
|
||||
private static let refreshTaskID = "app.alextran.immich.background.refreshUpload"
|
||||
private static let processingTaskID = "app.alextran.immich.background.processingUpload"
|
||||
private static let taskIDs = Bundle.main.object(forInfoDictionaryKey: "BGTaskSchedulerPermittedIdentifiers") as! [String]
|
||||
private static let refreshTaskID = taskIDs.first { $0.hasSuffix(".refreshUpload") }!
|
||||
private static let processingTaskID = taskIDs.first { $0.hasSuffix(".processingUpload") }!
|
||||
private static let taskSemaphore = DispatchSemaphore(value: 1)
|
||||
|
||||
public static func registerBackgroundWorkers() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue