title: Mute local notification sound when is app already running
body: <p>I am working on an alarm application. When the app is in the background a local notification informs the user that an alarm is ringing and playing a sound. But when the app is already in foreground I do not want the notification sound to play, but a custom sound. I cannot find how to mute the notification sound and as a result both sounds play simultaneously. Any ideas?</p>
  
  <p><strong>UPDATE</strong>: I restarted my device and the problem solved. It probably is an iOS bug.</p>