Untitled
unknown
swift
a year ago
902 B
4
Indexable
Never
func applicationDidEnterBackground(_ application: UIApplication) { os_log("applicationDidEnterBackground", log: .backgroundCycle, type: .default) } func applicationDidBecomeActive(_ application: UIApplication) { os_log("applicationDidBecomeActive", log: .backgroundCycle, type: .default) UIApplication.shared.applicationIconBadgeNumber = 0 ScanUploader.shared.resumeAllTasks() dependencyContainer?.postPhotoUploader.syncUploads() dependencyContainer?.reportsUploader.syncUploads() } func application(_ application: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void) { ScanUploader.shared.completionHandler = completionHandler os_log("relaunched_session_identifier_%{public}s", log: .backgroundCycle, type: .default, identifier) }