<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DBChooser in Swift3 app - DirectLink = &amp;quot;nil&amp;quot; problem in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/217380#M11354</link>
    <description>&lt;P&gt;Greg thanks for response! My app is simply not handling value. I have the newest DBChooser SDK - installed via Cocoa Pods. Dropbox version is 44.2.2.&lt;/P&gt;</description>
    <pubDate>Sat, 22 Apr 2017 08:51:41 GMT</pubDate>
    <dc:creator>mohergryzie</dc:creator>
    <dc:date>2017-04-22T08:51:41Z</dc:date>
    <item>
      <title>DBChooser in Swift3 app - DirectLink = "nil" problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/216998#M11302</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using DBChooser framework for pdf preview and download from dropbox and then to upload to another server. I stuck on this part of code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ViewController&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;DBChooser.default().open(for: DBChooserLinkTypeDirect, from: self, completion: { reasults in print(reasults as Any) })&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DBChooser is working because dropbox is opening and then returning to the app. Hovever it is not holding direct link in directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let downloadURL = DBChooserResult()
            print(downloadURL.link)&lt;BR /&gt;#nil&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A&lt;/SPAN&gt;&lt;SPAN&gt;ppDelegate&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt; func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -&amp;gt; Bool {
        
        if (DBChooser.default().handleOpen(url as URL!)) {
            return true
        }
        return false
    }&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas what is wrong?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:23:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/216998#M11302</guid>
      <dc:creator>mohergryzie</dc:creator>
      <dc:date>2019-05-29T09:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: DBChooser in Swift3 app - DirectLink = "nil" problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/217161#M11321</link>
      <description>&lt;P&gt;You appear to be constructing your own&amp;nbsp;DBChooserResult object instead of using the one(s) in the results array returned by Dropbox. You should instead do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DBChooser.default().open(for: DBChooserLinkTypeDirect, from: self, completion: { results in

    if ((results?.count) != 0) {
        for case let result as DBChooserResult in results! {
            print(result.link)
        }
    } else {
        print("no results")
    }

})&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Apr 2017 20:35:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/217161#M11321</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-20T20:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: DBChooser in Swift3 app - DirectLink = "nil" problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/217224#M11331</link>
      <description>&lt;P&gt;Greg, Thank you, but it is still not working. There are no errors but still&amp;nbsp;result of print(result.link) is "".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;for case let result as DBChooserResult in results! {
                    print(result.link)
                    MyVariables.fullpdfURL = String(describing: result.link)&lt;/PRE&gt;&lt;P&gt;I put some code to set my global variable and it is still "nil".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 08:35:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/217224#M11331</guid>
      <dc:creator>mohergryzie</dc:creator>
      <dc:date>2017-04-21T08:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: DBChooser in Swift3 app - DirectLink = "nil" problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/217311#M11340</link>
      <description>Thanks for following up. The code I shared worked properly for me, so we'll have to look into this further. Can you let me know:&lt;BR /&gt;- the version number of the Chooser SDK you have&lt;BR /&gt;- the version number of the official Dropbox iOS app you have installed</description>
      <pubDate>Fri, 21 Apr 2017 17:43:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/217311#M11340</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-21T17:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: DBChooser in Swift3 app - DirectLink = "nil" problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/217380#M11354</link>
      <description>&lt;P&gt;Greg thanks for response! My app is simply not handling value. I have the newest DBChooser SDK - installed via Cocoa Pods. Dropbox version is 44.2.2.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2017 08:51:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/217380#M11354</guid>
      <dc:creator>mohergryzie</dc:creator>
      <dc:date>2017-04-22T08:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: DBChooser in Swift3 app - DirectLink = "nil" problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/217647#M11368</link>
      <description>Thanks! I actually tested on 44.2.4 though, so can you try upgrading and letting me know if that helps?&lt;BR /&gt;&lt;BR /&gt;Also, I'm not sure I understand what you mean when you say your "app is simply not handling value". Can you elaborate? Thanks in advance!</description>
      <pubDate>Mon, 24 Apr 2017 17:40:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DBChooser-in-Swift3-app-DirectLink-quot-nil-quot-problem/m-p/217647#M11368</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-24T17:40:56Z</dc:date>
    </item>
  </channel>
</rss>

