1

I am creating an iPhone application with music player. I used AVPlayer for creating music player. The issue is beginInterruption method is not called in iOS 6.0.1 when a phone call arrives. But endInterruptionWithFlags:flags called. In lesser versions of iOS it is working fine. And one more thing I noticed is, if a phone call come when the app is in background, beginInterruption method is called!! But not when the app is active.

When I searched, I found the same issue is noted by some other also, and they stated as it is the bug with apple. And the issue is fixed in iOS 6.1.

So, what should I do? Should I try to fix the issue manually or tell the users to update the OS? At the same time, why it is working when the app is background? Any idea? Please help.

Thanks in advance.

Community
  • 1
  • 1
Mithuzz
  • 1,091
  • 14
  • 43
  • I don't think iOS 6.1 fixed it, sigh. – saiday Jan 30 '13 at 06:55
  • @olajuwon Did you try it on 6.1? In the link that I mentioned, they said, it is fixed. – Mithuzz Jan 30 '13 at 06:58
  • I knew, tried and still not fixed.. – saiday Jan 31 '13 at 09:39
  • Ok. So how did you manage it in your app? – Mithuzz Jan 31 '13 at 09:54
  • My app is at stages of development, if Apple won't fix it when I have to submit to AppStore, I will use a flag to determine is my AVAudioSession suspended cuz I force paused, remote media buffering, route changed. If not any of these things happened, it will be definitely interruption. But this will make code looks dirty, do you have any suggest? – saiday Feb 01 '13 at 07:13
  • As of now, i haven't done anything to fix the issue. We submitted the app and approved. We too thinking about use a flag as you said. If Apple fixes the issue, it would be more better. Anyway we will upload the updated version of app with fix. – Mithuzz Feb 04 '13 at 12:09

0 Answers0