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
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
// [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.
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.
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).
The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.Sound good? Let's get started.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!