• 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: iOS4: CFReadStream and background operation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS4: CFReadStream and background operation


  • Subject: Re: iOS4: CFReadStream and background operation
  • From: John Michael Zorko <email@hidden>
  • Date: Wed, 23 Jun 2010 14:20:28 -0700

Jens,

>> 2. However, CFReadStreams created _while_ the app was in the background often (though not always) _don't_ call their callbacks _until_ the app is brought in the foreground, then all of a sudden the callback happens.
>
> I think foreground/background is a red herring — that has almost no effect on the behavior of the app.

I think I know what the problem is -- my app is being suspended. Even though I have the "audio" key added to the plist file, there is this sentence (best imagined as narrated by an ominous, deep voice with a thick reverb) from the iPhone Application Programming Guide:

"However, if this key is not present when the application moves to the background, or if your application stops playing audio while in the background, your application is suspended."

I think what is happening is that if iOS4 catches my app not playing audio in the background (like if it calls AudioQueueStop() even if it's going to call AudioQueueStart() later), it suspends it.

Regards,

John


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >iOS4: CFReadStream and background operation (From: John Michael Zorko <email@hidden>)
 >Re: iOS4: CFReadStream and background operation (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: changes to NSView's frame in its window
  • Next by Date: NSTimeZone abbreviations
  • Previous by thread: Re: iOS4: CFReadStream and background operation
  • Next by thread: Using Field Editor correctly in custom NSCell
  • Index(es):
    • Date
    • Thread