When you visit the apple.com and they will have a prompt said that you have the “Apple Store app” installed and suggest you to open, how it is possible just from the broswer?
Update:
So, assume my app with bundle id com.example.myapp and registered the url scheme myapp://., what would be the JavaScript I can used in my site to check if the app is installed?
Apple has developed a meta tag that you can include in your website that can check if an app is installed by its app ID and if it is already installed open it. It is important to remember that on their platform Apple can do anything they want, and this is a great example. Mobile Safari has been programmed to take advantage of the presence of this tag to display the download/open banner.
Below is the meta tag where all you have to do is pass the app id, but IF you have a URL scheme you can use it here as well to pass arbitrary arguments to your application.