Return to app from background on iOS

211 views Asked by At

I have an app that works in background successfully. It also has a working URL scheme set up and running.

Now I need to implement the following scenario - after 5 seconds in background I want the app to open itself up - and make it a foreground one.

The public method doesn't seem to work from the app: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"shdServer://"]];

Is there any private API to return to the app from the background? Or is it impossible at all on iOS?

Publication on the AppStore is not needed

1

There are 1 answers

0
creker On BEST ANSWER

Answer here has a link to a sample project that can launch applications by their bundle ID. In your case you can give it bundle ID of your app and it will bring your app to the foreground. You don't need to jailbreak your device to use it.