Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to playing audio in background mode when If i click on iphone button to "minimize" the app?

I'm work on new iphone audio application.

When i open the app, the Audio was loaded and started. If i click on iphone button to "minimize" the app, the sound was stopped. I need the sound still playing in background mode.

How i do this?

Thank you

like image 805
Rajesh Rajput Avatar asked Nov 05 '22 17:11

Rajesh Rajput


1 Answers

To play in the background, add an Array entry named "UIBackgroundModes" your .plist file, and add "audio" as array member.

.plist entry:

UIBackgroundModes Array
Item0 String audio
like image 146
Shreesh Avatar answered Nov 12 '22 16:11

Shreesh