title: Custom url scheme works only if the app is in the background?
body: <p>I have defined a custom url scheme for my iOS app so that it can be accessed from a website. When I type my custom url scheme in safari the app opens up but the following function in my AppDelegate does not get called:</p>
  
  <pre><code> func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -&gt; Bool {
      print("Scheme: \(url.scheme)");
      print("Query: \(url.absoluteString)");
      return true;
  }
  </code></pre>
  
  <p>It gets called only when the app is open and running in the background. I want that function to be called when I type in the url in safari and the app is not open.
  Any help is appreciated, thanks!</p>