Last active
May 29, 2016 15:26
-
-
Save olxios/a18b63c0c408c63d04d1ce19dadca20e to your computer and use it in GitHub Desktop.
[Private iOS API] Launch another application: http://swiftiostutorials.com/jailbreak-development-launch-another-application/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We need only one method, no need to import all the framework headers | |
@interface PrivateApi_LSApplicationWorkspace | |
- (bool)openApplicationWithBundleID:(id)arg1; | |
@end | |
@implementation AppBackgroundUtil | |
+ (void)bringOtherAppToFront | |
{ | |
PrivateApi_LSApplicationWorkspace* _workspace; | |
_workspace = [NSClassFromString(@"LSApplicationWorkspace") new]; | |
// If the application is running in background, this will bring it to front. | |
// If the application is not running, it will launch it. | |
[_workspace openApplicationWithBundleID:@"com.yourcompany.example"]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment