4

Is there any way to programmatically bring an iOS application that's currently running in the background to the foreground? Note that this is an enterprise iOS app for non-jailbroken devices, so private API calls are fine.

I've tried a number of solutions already, including registering a custom URL handler and calling openURL from the background task, but it seems that openURL calls are ignored from background tasks. Is there a lower-level private API call that's used by openURL internally that I could use?

Other approaches I've tried include those mentioned at Launch other application without URL schema in iphone? but those don't seem to work from background tasks either.

Community
  • 1
  • 1
Ben Dowling
  • 17,187
  • 8
  • 87
  • 103
  • Ben, I asked very similar question here: http://stackoverflow.com/questions/11531544/show-some-ui-from-background-in-audio-player-or-voip-app-on-ios I am still trying to figure out how to do this. No luck so far. – Victor Ronin Aug 08 '12 at 22:42

1 Answers1

2
[[UIApplication sharedApplication] launchApplicationWithIdentifier:@"" suspended:NO];

You'll need to set the com.apple.springboard.launchapplications entitlement to YES as well for it to work.

jszumski
  • 7,430
  • 11
  • 40
  • 53
robhh
  • 21
  • 2