ios4 - iPhone - fast-app switching and iOS 4 -


i'm trying following functionality in iphone app:

  • when backgrounded, stays running (doesn't have background work)
  • when resumed, app picks left off

i'm wanting same screen on app still up, there several uinavigationcontrollers within uitabbarcontroller.

i have done of following:

  • made sure i'm compiling 4.1 sdk
  • set uiapplicationexitsonsuspend false
  • handle didenterbackground , willenterforeground in appdelegate
  • call beginbackgroundtask in didenterbackground, attempt keep app open

i'm using monotouch, beside point. can take answers in obj-c, sure.

i've tested app on jailbroken phone backgrounder, , see "app in background" badge disappear after pushing home button. tried setting uibackgroundmodes in info.plist, no avail.

is there i'm missing?

or have implement on own resume previous state of app? everywhere i've read talks should work automatically.

if don't want doing work in background, don't call beginbackgroundtask. call situations want kind of work in background. , if don't finish work fast enough, ios terminate app.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -