How to Programmatically check and open an existing app in iOS 8?

后端 未结 6 2008
执笔经年
执笔经年 2021-02-08 04:14

I want to check whether an app is present in my iphone or not. If it is present I want to launch it else open the App Store link of the app.

Please suggest the required

6条回答
  •  情深已故
    2021-02-08 04:57

    For opening an app from inside another app, you need to expose a URL scheme from the app you want to open.

    If the app can be opened using openURL function (which uses the custom URL scheme exposed), user can directly access your app.

    If not, you can open app store app page using the openURL function, supplying itunes app URL.

    Here lies complete idea about how to achieve it.

提交回复
热议问题