Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
alvaro a.2
10 years agoNew member | Level 1
After updating to iOS 9, App gets stuck when trying to login into dropbox
Hi,
My App stopped working after updating to iOS 9 because of the new Apple restriction on canopenurl which forces to register the url schemes you plan to you use in your app.
I followed this tu...
alvaro a.2
10 years agoNew member | Level 1
Steve, yes I posted the question on stackoverflow as well since I thought I was going to have better luck but since you guys replied to the post. I am deleting the question from stackoverflow.
Gregory, thanks for replying. My iOS version is 9 and I am using Swiftydropox tutorial and not the tutorial you mentioned which appears to for objective C. The dropbox SDK version I am using, I supposed is for Swift 2, I followed this steps to install it.
Here are the functions included in my delegate:
func application(application: UaIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
Dropbox.setupWithAppKey("myappkey")
// Override point for customization after application launch.
return true
}
func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {
if let authResult = Dropbox.handleRedirectURL(url) {
switch authResult {
case .Success(let token):
print("Success! User is logged into Dropbox.")
case .Error(let error, let description):
print("Error: \(description)")
}
}
return false
}
I noticed the function that handles Authorization never gets call.
And here is the declaration on my info.Plist
<key>LSApplicationQueriesSchemes</key>
<array>
<string>dbapi-2</string>
</array>
Let me know if you need any other information, thanks.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!