Play Alarm tone while iPhone is in Silent Mode
<p>I need to create an alarm app, which has capability to play sounds while phone is in silent mode.</p>

<p>According to this, it is possible with <code>AVAudioSession</code> but my problem is how to connect this with <code>UILocalNotification</code>:</p>

<pre><code>UILocalNotification *notification = [[UILocalNotification alloc] init];
notification.fireDate = fireDate;
notification.alertBody = @"Time to wakeup";
notification.soundName =UILocalNotificationDefaultSoundName;
//    notification.soundName = UILocalNotificationDefaultSoundName;

[[UIApplication sharedApplication] scheduleLocalNotification:notification];
[self presentMessage:@"Alarm shedule complete"];
</code></pre>

<p>Is there any other way to do this?</p>

<p>I have already tried the following link, but it does not work as they have mentioned: <a href="https://stackoverflow.com/questions/9725192/how-do-i-start-playing-audio-when-in-silent-mode-locked-in-ios-6">How do I start playing audio when in silent mode &amp; locked in iOS 6?</a></p>