Hi,
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.
ViewController
DBChooser.default().open(for: DBChooserLinkTypeDirect, from: self, completion: { reasults in print(reasults as Any) })
DBChooser is working because dropbox is opening and then returning to the app. Hovever it is not holding direct link in directory.
let downloadURL = DBChooserResult()
print(downloadURL.link)
#nil
AppDelegate
func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool {
if (DBChooser.default().handleOpen(url as URL!)) {
return true
}
return false
}Any ideas what is wrong?