Closed wbreeze closed 3 years ago
The UIWindowSceneDelegate
function sceneDidDisconnect
is not called when dismissing the application from the app switcher unless the app was in foreground when activating the switcher. The same is true for the UIApplicationDelegate
function applicationWillTerminate
.
This was resolved with iOS 14, but iOS 15 no longer plays the notifications at all. See #31
When the app is closed from the background, it does not cancel the bell notifications. It lives like a poltergeist, continuing to play ships bells.
The work-around is to bring the app to the foreground first, before dismissing it.
Clear the notifications on exit from the background.