0
votes

There are a few apps which I find very helpful and want to recommend to my users inside my app. If one such app is installed, and the user taps the button, I want to launch that app. Otherwise open the app page in the App Store app.

UIApplication provides a -canOpenURL: method which I think can be used to check if an app exists on the device. With -openURL: an app can be launched. But how do I construct an NSURL to launch an app?

The apps I want to refer to don't have any special registered URL scheme, at least not that I know of. All I know is their name and app ID.

Is that possible or must the developers of these apps update their apps to support custom URL opening schemes?

2

2 Answers

1
votes

It is only possible to open the app by url in case it has known registered URL scheme (it may me your application or one of the existing iOS schemes)

0
votes

Here is a list of public URL schemes. This however is just a fraction of what is out there in the market. It may however be helpful for you.