Launch Other Application Without Url Schema in Iphone

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



Leave a reply



Submit