cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DBChooser is not supported iOS10.0

DBChooser is not supported iOS10.0

Lijia
New member | Level 2
In myapp-info.plist,I have added two new items with the values dbapi-1 and dbapi-3 in the LSApplicationQueriesSchemes, and I have entered db-APP_KEY in the URL Schemes. When I perform  this method: [[DBChooser defaultChooser] openChooserForLinkType:DBChooserLinkTypePreview fromViewController:self.mDocListVC completion:^(NSArray *results) {         if ([results count]) {             DBChooserResult *result = [results objectAtIndex:0];             RRSimplePublishFile *publish = [[RRSimplePublishFile alloc] initWithDropBox:result];             publish.transactionId = self.transactionId;             [AppNavigator pushViewController:publish animated:YES];             return;         }     }]; In iOS9+,it always pop up “please install Dropbox”,and reports the error below : 2016-10-25 13:05:45.405 RenrenEstate[13541:5034403] -canOpenURL: failed for URL: "dbapi-3://1/chooser?k=j6a26dox62s9sa5&linkType=preview" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-10-25 13:05:45.418 RenrenEstate[13541:5034403] -canOpenURL: failed for URL: "dbapi-1://chooser" - error: "This app is not allowed to query for scheme dbapi-1"
1 Reply 1

Greg-DB
Dropbox Staff

The 10814 error code you're getting for dbapi-3 is expected when no application is installed to handle that URL scheme. That would be expected, for example, if the Dropbox app isn't installed (e.g., on the simulator). Is that the case in your scenario? (The Dropbox Chooser is actually built in to the official Dropbox app, so the official app needs to be installed for the Chooser to work.)

 

The "This app is not allowed to query for scheme" error you're getting for dbapi-1 would be expected if you're not registered for dbapi-1 under LSApplicationQueriesSchemes in your app's plist. You mentioned you did that, but can you double check that was entered correctly? If it's not working as expected, please share your plist so we can try to reproduce the issue.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?