Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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
لسيب
Can you share the relevant code snippet(s) as well as the relevant section of your app's plist so we can look into this? Thanks in advance!
the code is dropbox SDK,The following is the interface code I wrote:
DBSession* session = [[DBSession alloc] initWithAppKey:appKey appSecret:appSecret root:root];
session.delegate = self; // DBSessionDelegate methods allow you to handle re-authenticating
[DBSession setSharedSession:session];
[session release];
// [DBRequest setNetworkRequestDelegate:self];
return [[DBSession sharedSession] isLinked];
Thanks! That looks right. Do you have the official Dropbox app installed on the device you're seeing this on? (Or are you using the simulator?)
This message is expected even when URL scheme is pre-registered if no app is installed that supports the dbapi-2 URL scheme. The app authorization process should still work by falling back to the in-app flow though. Does the app authorization process still work for you in this case?
thanks your reply,On my device do not have the official Dropbox app, I am using a iphone6 debugging.
My application is still debug phase.
Although the connection dropbox login screen reported "dbapi-2" mistake, but after waiting for some time, the login screen can display.
It sounds like this is working as expected then. If the Dropbox app is installed, that will be used instead.
Hi guys,
I am getting the error dbapi-2://1/connect" - error: "(null)" when I try to enable dropbox in the simulator however when I try my app in the device I don't get the error because I have the actual dropbox App installed. The problem is when I test my app in the device it will open dropbox to log the user but then after login, it won't come back to my app and if I come back manually, it won't upload files because it tells me the user is unauthorized.
Any advice?
Thanks
It sounds like the canOpenURL part of this is working as expected, and the issue has to do with being sent back to your app after the fact, so please open a new thread with the details so we can help (without spamming the other people on this thread).
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!