title: Unable to call AppDelegate openURL( ) while using the Dropbox SDK
body: <p>I'm trying to add Dropbox authentication to my app, but it's showing me this error:</p>
  
  <pre><code>DropboxSDK: app delegate does not implement application:openURL:sourceApplication:annotation:
  </code></pre>
  
  <p>Below is the code in my app delegate:</p>
  
  <pre><code>let dbSession = DBSession(appKey: dbAppKey, appSecret: dbAppSecret, root: kDBRootDropbox)
  DBSession.setSharedSession(dbSession)
  
  func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -&gt; Bool {
  
      if DBChooser.defaultChooser().handleOpenURL(url){
          return true
      }
      else if DBSession.sharedSession().handleOpenURL(url){
  
          if DBSession.sharedSession().isLinked(){
              return true
          }
      }
      return false
  }
  </code></pre>
  
  <p>I had created an NSObject for authentication and handling other operations related to Dropbox API. Below is my authentication code:</p>
  
  <pre><code>if !DBSession.sharedSession().isLinked(){
      DBSession.sharedSession().linkFromController(viewController)
  }
  else{
      delegate.authenticationStatus!(true, error: nil)
  }
  </code></pre>
  
  <p>I'm getting this error after it's successfully logged in. I had also set LSApplicationQueriesSchemes in my plist and also added the URL types. I'm unable to find where I'm making a mistake.</p>
  
  <p>Also I'm trying to check if Dropbox app is present or not using</p>
  
  <pre><code>if UIApplication.sharedApplication().canOpenURL(NSURL(string: "dbapi-1://")!){
  }
  </code></pre>
  
  <p>But it's giving me below error:</p>
  
  <pre><code>canOpenURL: failed for URL: "dbapi-1://" - error: "(null)"
  canOpenURL: failed for URL: "dbapi-2://1/connect" - error: "(null)"
  </code></pre>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thanks in advance.</p>