Ios swift – How to run an async/await task when application will be terminated?
I want to update or end a Live Activity when the application is terminated, but those functions are async, and anything inside Task{ } is not get called in the applicationWillTerminate(_) function. func applicationWillTerminate(_ application: UIApplication) { Task { if…