0

I just finished my Radio station IOS application but I have 1 problem here .. when you are listening to the streaming and press the home button the application stop working .... I did some research and found some application keep the streaming after pressing the Home Button.

is it an option in the Xcode I can enable it?

Mohammad Ereiqat
  • 165
  • 1
  • 11

2 Answers2

0

You need to set the audio session category correctly:

[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];

check also this question: iPhone OS 4 Multitasking - Playing Audio In background

Community
  • 1
  • 1
Michele Percich
  • 1,872
  • 2
  • 14
  • 20
0

I fixed the problem, I Just set an entry in the Plist

Required background modes : App plays audio
Mohammad Ereiqat
  • 165
  • 1
  • 11