Closed marcjulianfleck closed 3 years ago
A quick search on this one indicates it may have different behavior depending on whether it is the simulator or a real device, and varying on iOS versions
@marcjulianfleck - can you specify the exact testing environment (versions, real device or simulator) when you see this behavior?
https://stackoverflow.com/questions/19540516/how-stop-local-notification-sound-after-cancel-local-notification https://stackoverflow.com/questions/4762816/is-it-possible-to-stop-the-sound-of-a-uilocalnotification-from-playing-when-the/27238910#27238910
@mikehardy yes, I already saw a few similar issues on stackoverflow. However, it seems not be fixed after iOS 8.0 in my case.
My environment:
Mmm interesting, I think this is out of our control 😕
If I trigger a notification on iOS from the setBackgroundMessageHandler() of Firebase with a custom sound - which is around 25 seconds - and after some time call
notifee.cancelNotification("OWN_ID")
ornotifee.cancelDisplayedNotification("OWN_ID")
the notification gets removed. However, the sound keeps playing till the end. On the other hand, if I press on the notification, the sound stops immediately.This is how I display/start the notification:
Anybody solved this issue yet?