title: iTunes app link cannot open page in safari in simulator and also iDevices
body: <p>I hope this may be duplicate question. <strong>But none of the answers didn't hard help me.</strong> I am trying to open a link from my iOS application. When I press the button, <strong>It opens the safari app and it always says an alert "Safari cannot open the page because the address is invalid".</strong> Here it is a link looks like the same <a href="https://itunes.apple.com/gb/app/app_name/id(appId)" rel="noreferrer">https://itunes.apple.com/gb/app/app_name/id(appId)</a> . </p>
  
  <p>I don't think it is a good place to post the exact the app link. So the above link is dummy link exactly look like mine. <strong>Why the error always happening when I try to open the link</strong>. I tried in simulator and also in iPod. Same error occurs. <strong>If I try the same link with Safari in MAC OS then it works.</strong>
  Here it is a code I am using to open the safari from my app with a link.</p>
  
  <pre><code>[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://itunes.apple.com/gb/app/app_name/id(appId)"]];
  </code></pre>
  
  <p>I am from India. The above link contains <strong>gb</strong>. Is that link can only open from <strong>Great Britain</strong>??</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I have good working network. And I tried one more thing. <strong>I opened my safari app in simulator and search my app in google and clicking that link shows the same error. Is that a problem with that link in apple side itself??</strong></p>