how to open an app by bundle id on iOS

被刻印的时光 ゝ 提交于 2019-12-02 10:47:05

* For jail break you can proceed with this *

There is a mechanism known as URL scheme, which can be used to open app from inside your app. but for that you need to do the proper url schemens setUp in your plist file. I strongly feel that you are not looking at this option.

* There is another way strictly not recommended ( except JAILBREAK PHONES) the API is private *, but you can do a try & enjoy in development mode.

  • openApplicationWithBundleID : To open the app using bundle identifier.
  • - (NSArray*)allInstalledApplications; : This will list you all the installed application on your device.

If you want to see an interesting demo it this, kindly run this app in your phone & see the Apple Watch style, spring board, with all apps listed & can be launched on tap.

Hope that gives the better idea of the private api usage.

Install the com.conradkramer.open open package from Cydia and you can run open com.bundle.id from shell via SSH or from an app.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!