add in bg task to fill in missing days

This commit is contained in:
Trey t
2022-01-10 09:12:49 -06:00
parent 056d7e8097
commit 00b955b0bc
3 changed files with 8 additions and 4 deletions

View File

@@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
<string>com.88oak.Feels.dbUpdateMissing</string>
</array>
<key>UIBackgroundModes</key>
<array>
<string>processing</string>

View File

@@ -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 */,
);

View File

@@ -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()