• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Audio Session interruption and banner style notification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Audio Session interruption and banner style notification


  • Subject: Audio Session interruption and banner style notification
  • From: Arnaud Chanu <email@hidden>
  • Date: Wed, 23 Sep 2015 11:37:24 -0400

Hi Core Audio,

I have an iOS app (working on iOS8 and iOS9) that configures and use the RemoteIO output unit to play music and sounds. The app uses Audio Session interruptions to react to the different sources (timer alarm, calendar alert, phone call ect..) as largely described in Apple AudioSession documentation. The output audio unit is explicitly uninitialized   ans stopped each time the app receives an audio session interruption or when the application delegate to put the app inactive is triggered. It is later reactivated on the end of the interruption or when the app becomes active again. 

Everything works fine this way but I noticed that when the device receives an incoming notification with sound configured to be displayed as a banner type (an incoming text message from a messenger app example), the audio of the app gets interrupted (I’m using solo ambient category) while the notification sound plays but there seems to be no notification of type AVAudioSessionInterruptionNotification or AVAudioSessionSilenceSecondaryAudioHintNotification prior  to the audio session deactivation. There is also no call to the application delegate to let the app know about the audio session that is about to be deactivated (as opposed to the case where the notification is configured to appear as an alert instead of a banner style). This causes me some issue when the audio session is later re activated as the rest of the app is not aware of this in this precise case.

 Any advice on how to manage incoming banner style notification with sound in a non mixable category when no audio session interruption is triggered ?

Thanks in advance

Arnaud
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: V3 Audio Units on iOS 9
  • Next by Date: Re: MusicPlayer in iOS9
  • Previous by thread: V3 Audio Units on iOS 9
  • Next by thread: Re: MusicPlayer in iOS9
  • Index(es):
    • Date
    • Thread