possibly fix the launch crash

add new package to track cloudkit issues
This commit is contained in:
Trey t
2022-01-24 10:27:41 -06:00
parent af19d57a62
commit 24be0073ae
4 changed files with 34 additions and 14 deletions

View File

@@ -17,7 +17,6 @@ struct FeelsApp: App {
let persistenceController = PersistenceController.shared
init() {
persistenceController.fillInMissingDates()
BGTaskScheduler.shared.cancelAllTaskRequests()
BGTaskScheduler.shared.register(forTaskWithIdentifier: BGTask.updateDBMissingID, using: nil) { (task) in
BGTask.runFillInMissingDatesTask(task: task as! BGProcessingTask)
@@ -38,6 +37,7 @@ struct FeelsApp: App {
if phase == .active {
UIApplication.shared.applicationIconBadgeNumber = 0
persistenceController.fillInMissingDates()
}
}
}