I am running a website using node.js
which is currently running on my localhost:{port_no}
. If we run our website on ipad/mobile device, then we need to redirect it to the App Store for downloading the App(available for device).
window.location = 'https://itunes.apple.com/app/{app_id}';
But, when i tried it in ipad simulator, then it show an message/alert Safari cannot open this page, because the address is invalid.
I tried it using both, http
and https
, but it doesn't work.
NOTE: The same url is working on website(in localhost).
Thanks.