title: canOpenURL: failed for URL: "instagram://app" - error: "This app is not allowed to query for scheme instagram"
body: <p>This is the code I use:</p>
  
  <pre><code>let instagramURL = NSURL(string: "instagram://app")
  if UIApplication.shared.canOpenURL(instagramURL! as URL) {
    //Code
  } else {
    //Showing message "Please install the Instagram application"
  }
  </code></pre>
  
  <p>I am getting unsuccessful to enter in if loop.</p>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>canOpenURL: failed for URL: "instagram://app" - error: "This app is not allowed to query for scheme instagram"</p>
  </blockquote>
  
  <p>I have also Login with Instagram in my device.</p>