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.