0

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.

Mohit Pandey
  • 3,679
  • 7
  • 26
  • 38

1 Answers1

0

We have the same issue. Some links work (user pressed) some do not (redirects via server 301/302 or some JS calls). I have found that if you delete the app it works! Looks like an odd Apple bug as it should take me to the app page with the open button (rather that purchase / install / etc).

In iOS 6 and 7 (we have no devices with older iOS and don't support them any more so I can vouch for them).

This is in simulator and real devices.

Rahil Wazir
  • 10,007
  • 11
  • 42
  • 64
Dave
  • 1