Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
r. joy
11 years agoNew member | Level 1
ios9 ,canOpenURL: failed for URL: "dbapi-2...
Ios9 system, access to login screen I get the following error: -canOpenURL: failed for URL: "dbapi-2://1/connect" - error: "(null)",
so , I add "dbapi-2" to LSApplicationQueriesSchemes,
but, the error is still there
27 Replies
Replies have been turned off for this discussion
- Greg-DB11 years ago
Dropbox Community Moderator
Victor, this message is expected if the official Dropbox app isn't installed even when URL scheme is pre-registered, but the SDK should fall back to using the built-in auth flow. Is that not what you're seeing? If not, what does happen?
- Victor A.1411 years agoNew member | Level 1
Hi Gregory,
Sorry. It was my fault. I was presenting this:
[[DBSession sharedSession] linkFromController:this];
from the wrong controller.
It's all right now with the dbapi-2 application queries scheme.
Thank you.
- r. joy11 years agoNew member | Level 1
Thank you for yours reply.The problem of its own ios9 system.
- Bourne W.11 years agoNew member | Level 1
Hi Gregory
I found the latest Dropbox SDK was released at "Version 1.3.13, updated September 15, 2014". I got this info from: "https://www.dropbox.com/developers-v1/core/sdks/ios", more than 1 year!!!!
Is there any update recently?
- Greg-DB11 years ago
Dropbox Community Moderator
Bourne, your question doesn't seem to be directly related to this thread. In the future, please be sure to open new threads for new questions so as not to spam the other people on a thread.
To answer your question though, version 1.3.13 of the iOS Core SDK as posted on the page you linked to is the latest version. We do have a new Swift SDK for API v2 if you want to use that though.
- Bourne W.11 years agoNew member | Level 1
Thanks Gregory
The reason why I asked that (version) is because I have the same issue (I already added "dbapi-2" to LSApplicationQueriesSchemes), so I was wondering whether it's because I'm still using that old SDK (I did download from that website).
- Greg-DB11 years ago
Dropbox Community Moderator
Are you still having trouble? If so, what isn't working as expected specifically? Can you share the steps to reproduce the issue, as well as the full error/output you're getting?
- Bourne W.11 years agoNew member | Level 1
Gregory
Here is my code:
if (![[DBSession sharedSession] isLinked]) {
[DBSession sharedSession].delegate = self;
[[DBSession sharedSession] linkFromController:self];
}
and I have followings in .plist
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbauth</string>
<string>dbapi-2</string>
<string>fbauth2</string>
</array>
The console output is:
FFC[21095:2556563] -canOpenURL: failed for URL: "dbapi-2://1/connect" - error: "(null)"
- Greg-DB11 years ago
Dropbox Community Moderator
Ok, and what, if anything, isn't working as expected? That message is expected if the official Dropbox app isn't installed, but the SDK should then fall back to the built-in flow, in which case you can just ignore that message. Is this what's happening in your case?
- Sergey S.1010 years agoNew member | Level 1
Got the same error. When link controller is opened, I tap Cancel, but open URL delegate method isn't called, i.e. no callback if a user cancel auth process.
If a user grant permissions to my app, I get callback.
SDKv1: cancel flow works correctly.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!