kvofreelance
kvofreelance

Reputation: 63

jailbroken iOS: how resume(in foreground) from background

I have problem. I need solve this problem for jailbreak iOS. My application works in background mode. I want that application go to foreground mode from background after some events. I tried next instruction:

system([[NSString stringWithFormat:@"uiopen \"%@\"", @"appname://"] UTF8String])

But application didn't run from background. App run as new process. Thank you.

Upvotes: 2

Views: 477

Answers (1)

Victor Ronin
Victor Ronin

Reputation: 23278

User private API:

   int SBSLaunchApplicationWithIdentifier(CFStringRef displayIdentifier, Boolean suspended);

It's defined in SpringboardServices private framework.

You will need to add entitlement "com.apple.springboard.launchapplications" for this to work.

Upvotes: 3

Related Questions