From 00b955b0bcabe82af670e1cae8f0c54b9abbe31c Mon Sep 17 00:00:00 2001 From: Trey t Date: Mon, 10 Jan 2022 09:12:49 -0600 Subject: [PATCH] add in bg task to fill in missing days --- Feels--iOS--Info.plist | 4 ++++ Feels.xcodeproj/project.pbxproj | 6 +++--- Shared/FeelsApp.swift | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Feels--iOS--Info.plist b/Feels--iOS--Info.plist index d1d3f19..a1c5b63 100644 --- a/Feels--iOS--Info.plist +++ b/Feels--iOS--Info.plist @@ -2,6 +2,10 @@ + BGTaskSchedulerPermittedIdentifiers + + com.88oak.Feels.dbUpdateMissing + UIBackgroundModes processing diff --git a/Feels.xcodeproj/project.pbxproj b/Feels.xcodeproj/project.pbxproj index d7e09e7..481dfa8 100644 --- a/Feels.xcodeproj/project.pbxproj +++ b/Feels.xcodeproj/project.pbxproj @@ -196,12 +196,12 @@ 1CD90AEA278C7DDF001C4FEA /* Shared */ = { isa = PBXGroup; children = ( + 1CD90AED278C7DDF001C4FEA /* FeelsApp.swift */, 1CD90B75278C8119001C4FEA /* LocalNotification.swift */, + 1CD90AEF278C7DDF001C4FEA /* Persistence.swift */, + 1CD90B5C278C7EAD001C4FEA /* Random.swift */, 1CD90B31278C7E38001C4FEA /* views */, 1CD90B60278C7EBA001C4FEA /* Models */, - 1CD90B5C278C7EAD001C4FEA /* Random.swift */, - 1CD90AED278C7DDF001C4FEA /* FeelsApp.swift */, - 1CD90AEF278C7DDF001C4FEA /* Persistence.swift */, 1CD90AF0278C7DE0001C4FEA /* Assets.xcassets */, 1CD90AEB278C7DDF001C4FEA /* Feels.xcdatamodeld */, ); diff --git a/Shared/FeelsApp.swift b/Shared/FeelsApp.swift index ccfe0d7..5232b9a 100644 --- a/Shared/FeelsApp.swift +++ b/Shared/FeelsApp.swift @@ -36,7 +36,7 @@ struct FeelsApp: App { } class BGTask { - static let updateDBMissingID = "com.88oak.dbUpdateMissing" + static let updateDBMissingID = "com.88oak.Feels.dbUpdateMissing" class func runFillInMissingDatesTask(task: BGProcessingTask) { BGTask.scheduleBackgroundProcessing()