Forum Discussion

jieDai's avatar
jieDai
Explorer | Level 3
5 years ago

Unable to log in

I applied for appkey on Dropbox developers. An error was reported when authorizing authentication.      "[DBClientsManager authorizeFromController:[UIApplication sharedApplication] controller:controller openURL:^(NSURL *url) { [[UIApplication sharedApplication] openURL:url]; }];

"error message:

terminating with uncaught exception of type NSException

*** Terminating app due to uncaught exception 'FatalError', reason: 'DropboxSDK: unable to link; app isn't registered for correct URL scheme (db-03609z0wg843bb3). Add this scheme to your project Info.plist file, associated with following key: "Information Property List" > "URL types" > "Item 0" > "URL Schemes" > "Item <N>".'

 

We look forward to your reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    It sounds like you're using the Dropbox API v2 Objective-C SDK. That implements the app authorization flow redirect by using a custom URL scheme that you need to register for your app. In your case, based on the output here, your URL scheme would be "db-03609z0wg843bb3".

     

    Make sure you've registered that in your app's .plist file, as indicated in the error message. You can find more information on setting this up the SDK in your app here.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,947 PostsLatest Activity: 4 hours ago
351 Following

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 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!