I want to launch an ios app by using its app identifier in ios 6. I know the URL scheme but I don't to be dependent on URL scheme key. My device is non-jailbreak. Please keep it in mind my app is in-house app it will not be published on app store I have found this method on stack overflow :
void* sbServices = dlopen("/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices", RTLD_LAZY);
int (*SBSLaunchApplicationWithIdentifier)(CFStringRef identifier, Boolean suspended) = dlsym(sbServices, "SBSLaunchApplicationWithIdentifier");
const char *strBundleId = [bundleId cStringUsingEncoding:NSUTF8StringEncoding]; int result = SBSLaunchApplicationWithIdentifier((__bridge CFStringRef)bundleId, NO);
dlclose(sbServices);
It returns 1 means true but doesn't launch or open an app.