• 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
Re: What should my iOS app do in applicationWillResignActive()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What should my iOS app do in applicationWillResignActive()?


  • Subject: Re: What should my iOS app do in applicationWillResignActive()?
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 28 Dec 2016 21:21:46 -0600


On Thu, Dec 22, 2016, at 05:47 AM, Andreas Falkenhahn wrote:
> I'm wondering what my app should do in applicationWillResignActive().
> When the user presses the home button to quit my app, iOS automatically
> fades out my app's audio. This is a nice thing; I like it and I'd like
> to keep this behaviour.
>
> However, when the user holds the home button to open Siri and then
> returns to my app, the audio is gone. This lets me believe that I
> probably have to stop all audio playback in applicationWillResignActive()
> and resume my audio playback in applicationDidBecomeActive(). Is that
> right?
>
> If it is, then there is another problem: If I always stop all audio
> playback in applicationWillResignActive(), then I won't be able to
> keep the nice audio fade out feature when the user quits the app
> (see above) because applicationWillResignActive() is also called when
> the user quits the app.
>
> This all leaves me wondering what I should really do in
> willResignActive().
> I'd like to have the audio fade out when the user quits the app but
> I also need the app to play audio again after returning from Siri.
> So how can I achieve that?

How are you playing audio? Are you correctly handling interruptions?

See
<https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/HandlingAudioInterruptions/HandlingAudioInterruptions.html>
for more information.

--Kyle Sluder

>
> --
> Best regards,
>  Andreas Falkenhahn
>  mailto:email@hidden
 _______________________________________________
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


References: 
 >What should my iOS app do in applicationWillResignActive()? (From: Andreas Falkenhahn <email@hidden>)

  • Prev by Date: Re: low-pass and high-pass filter.
  • Next by Date: Any AU host supporting kAUPresetExternalFileRefs
  • Previous by thread: What should my iOS app do in applicationWillResignActive()?
  • Next by thread: low-pass and high-pass filter.
  • Index(es):
    • Date
    • Thread