通过Bundle Identifier唤醒APP

导入头文件#import

  Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
  NSObject * workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
  BOOL isopen = [workspace performSelector:@selector(openApplicationWithBundleID:) withObject:@"要唤醒的APP Bundle Identifier"];//可以从ipa包的info.plist文件中获取

你可能感兴趣的:(通过Bundle Identifier唤醒APP)