I'm using this function in my app, to handle calls from other applications:
(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
I need to understand how can I re-launch the app that has launched my app after I finished handling the request.
In short - I need the source app to be in foreground once I have finished handled issues in my app.
Here the flow:
- User click on some button on 3rd party's app (it can be any app, not a specific one)
- the button uses
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:sourceApplication]]
- I perform some actions in my app.
- The 3rd party's app (source app) re-opened.
Any ideas?
Thanks!
(btw - I think that Facebook API does that too, but not sure.)