Hi im trying to make an alarm app, and made some notifications when the alarms finished. I have a custom alarm sound that last for some time, so the use will notice that the alarm is finished. But when the alarm goes and the notification gets sendt, the sound plays until its finished. Even when the user unlocks the phone.
Is it possible to make the sound stop playing when the user interacts with the phone ?