Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS deep linking + redirect to App Store if app not installed

I've integrated custom url calls to link to specific pages on my app with the url scheme definitions like so:

myapp://?id=123

the problem is that I am not sure how to cause the iOS to go to the App Store if my app is not installed on the specific device, like Pinterest app deep links do.

like image 585
Or Ron Avatar asked Oct 23 '25 00:10

Or Ron


1 Answers

UIApplication has a canOpenURL: method that you can use to query the system to check if it can handle a URL with your custom scheme. If it can then you can open the URL and know your app is installed. If it can't then your app isn't installed and you need to push to the store instead.

This obviously needs to be added to an app, whether that be another one of your apps or a 3rd party app that you offer integration with.

If you mean from a web page then see this answer.

like image 122
Wain Avatar answered Oct 26 '25 00:10

Wain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!