Scene support and multiple windows in iOS 13 have complicated the question of when to save data. A scene delegate's sceneDidEnterBackground might seem like a pretty good place, but there are times when it won't be sufficient:
If your scene was frontmost and the user goes to the app switcher and terminates your app, you'll get
sceneDidDisconnectandapplicationWillTerminate, notsceneDidEnterBackground.If the user switches off the device while your app is frontmost, you'll get
applicationWillTerminate, notsceneDidEnterBackground.
What strategy are people using to manage data saving in iOS 13 apps that support window scenes and possibly multiple windows?