Application tones start when I get incoming call or message

I've got a problem with my app where I'm testing it on my own phone.

I'm using audio kit to generate tones as part of the app. Everything seems to work fine. Sounds start, Stop, etc. They play when the app is closed and when the phone is locked, so background is working.

However, I'm seeing an issue where, even when STOP is pressed and the application exited, if I get a notification such as a text message, the base tone for the app starts to play.

If I then open the app, check the Start/Stop button - it says start so that. hasnt' been activated. If I click Start, then a 2nd tone starts. This one stops with the Stop button. However the original tone that was set off by an incoming message carries on playing.

Until I go to the Open Apps View on the phone and slide the application upwards.

For the life of me, I can't figure out whats happening here.

Application tones start when I get incoming call or message
 
 
Q