Use the request ID as the background task ID

This commit is contained in:
Jackson Harper 2022-05-30 09:16:33 -07:00
parent 974757c7da
commit a17cb72527

View file

@ -42,7 +42,7 @@ final class ShareExtensionViewModel: ObservableObject {
}
func savePage(extensionContext: NSExtensionContext?) {
backgroundTask = UIApplication.shared.beginBackgroundTask(withName: "BACKGROUND")
backgroundTask = UIApplication.shared.beginBackgroundTask(withName: requestID)
PageScraper.scrape(extensionContext: extensionContext) { [weak self] result in
switch result {