How to play sounds in locked mode on iPhone

Posted by Joe Mallik on Stack Overflow See other posts from Stack Overflow or by Joe Mallik
Published on 2010-05-26T13:08:09Z Indexed on 2010/05/26 13:11 UTC
Read the original article Hit count: 290

Filed under:
|
|

Everybody knows the standard procedure to keep your app alive, after the user pressed the lock button (silent sound). If I start a sound with AVAudioPlayer (before the iphone is locked), the sound plays till it's end (after locking). The app is still running. If I try to start another sound while the iPhone is locked, it will never get played. All the other things work as well but the sound doesn't.

How can I play a sound while the iphone is locked?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about avaudioplayer