Launch other application without URL schema in iphone?
I used this way:
void* sbServices = dlopen("/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices", RTLD_LAZY);
int (*SBSLaunchApplicationWithIdentifier)(CFStringRef identifier, Boolean suspended) = dlsym(sbServices, "SBSLaunchApplicationWithIdentifier");
int result = SBSLaunchApplicationWithIdentifier((CFStringRef)bundleId, false);
dlclose(sbServices);
And you need entitlements granted to your app:
<key>com.apple.springboard.launchapplications</key>
<true/>
It can run on iOS 6.
Launch app without knowing the url scheme
You can inspect the Info.plist file of the app by extracting the .ipa file:
- Sync the App to iTunes, if necessary.
- Ctrl-Click on the App in iTunes, and use "Show in Finder" to locate the "OtherApp.ipa" file.
- Copy "OtherApp.ipa" to a temporary directory, and use "unzip OtherApp.ipa" on the command line to extract the archive.
- Open "Info.plist" inside the "Payload/OtherApp" folder.
Launch another app from myapp without url scheme - jailbreak users are able to, so how?
Finally i found a solution: open - a commandline tool by Conrad Kramer:
http://thecydiastore.com/app/com.conradkramer.open/
Related Topics
In iOS, What's the Difference Between Autoresizing, Autolayout, and Constraints
How to Get Notified in Contact Changed Event in iOS
Searching Nsarray of Nsdictionary Objects
How to Disable 4 Finger Gestures on iPad
How to Display Remote Document Using Qlpreviewcontroller in Swift
Best Way to Use Background Location Updates in iOS (Swift)
Avplayer Shows Black Screen When Playing Multiple Videos in Swift3 iOS
iPhone Uibutton - Image Position
How to Get the Front Camera in Swift
Find Uialertview Without Having Reference to It iOS 7
Get Instance of Viewcontroller from Appdelegate in Swift
How to Set Http Header Fields in Objective-C
How to Disable iPhone 6 Native Resolution
Nsurlsessiondatatask Datataskwithurl Completion Handler Not Getting Called