"Safari cannot open the page because the address is invalid" message appears when I try to launch my app from a website : <p><strong>Device : iPhone 5 / iOS 9.3</strong> </p>

<p>I have an <strong>iOS app</strong> which I need to launch from a <strong>website</strong>. I was able to do it via custom URL scheme.</p>

<p>When I click the "<strong>Open App</strong>" button in the website, an alert dialog appears that says "<strong>Safari wants to open MyApp</strong>" with OK &amp; Cancel buttons.</p>

<p>Clicking <strong>OK</strong> : everything is just fine. The app gets launched from the website perfectly.</p>

<p>Clicking <strong>Cancel</strong> : First time, it just dismisses preventing the app being launched, which is correct.</p>

<p>When I click on the "<strong>Open App</strong>" button once again from the website, I expect the same "Safari wants to launch MyApp" alert dialog to appear <strong>once again</strong>, <strong>which is not happening.</strong> </p>

<p><strong>Instead</strong>, it shows a dialog that says "<strong>Cannot Open Page - Safari cannot open the page because the address is invalid</strong>" with an OK button.</p>

<p>My assumption was, every time when you click on that link in the website (that can launch the app via custom url scheme), I should be prompted with "safari wants to open MyApp" alert dialog all the time. </p>

<p>What am I missing here ? Appreciate your help in advance.</p>
