We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Steve M.52
10 years agoNew member | Level 1
DB Chooser failing in iOS9 - app not allowed to query for scheme
I'm using DBChooser in my app. The Dropbox app is installed on the device and updated. I'm using iOS 9.3.5.
I have registered schemes dbapi-1, dbapi-2 and dbapip-3 in LSApplicationQueriesSchemes in...
Steve M.52
10 years agoNew member | Level 1
I also tried it a slightly different way:
- (void)executeDropboxImport
{
NSLog(@">>>>> Creating chooser <<<<<");
DBChooser *chooser = [[DBChooser defaultChooser] initWithAppKey:@"db-my_app_key"];
NSLog(@">>>>> opening chooser <<<<<");
[chooser openChooserForLinkType:DBChooserLinkTypeDirect fromViewController:self completion:^(NSArray *results) {
// closure code
}];
}
With this approach I see both of those NSLog messages, but the import fails and on the device I get the alert dialogue saying:
Unable to Generate Link
Sorry, an error occurred. Please try again later.
Nothing appears in the console (the 'not allowed to query' error doesn't appear), including the NSLog messages. In fact, I'm left in the DBChooser with no direct way to get back to my app. Of course, that may be because I'm doing it wrong. ;)
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!