Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
VyacheslavB
6 years agoHelpful | Level 5
I have a problem with connecting Dropbox API to my iOS app with Swift 5
Dropbox API documentation is in front of my eyes, I do everything as it is written there step by step. But in some of the methods that are indicated there are errors and I do not know what to replace...
- 6 years ago
You can manage your app's development user limit from the app's page on the App Console:
https://www.dropbox.com/developers/apps
You can use enable more user accounts to connect to your app by clicking the "Enable additional users" button, to avoid this error for now, or when ready, you can apply for production using the "Apply for production" button.
You can find more information on how this works here:
https://www.dropbox.com/developers/reference/developer-guide#production-approval
VyacheslavB
6 years agoHelpful | Level 5
Thanks for your support.
After the user has successfully logged in, I want to display a list of their files on the screen. What's the best way to do this? Should I display it in my View, or does Dropbox provide some kind of web interface as when authorizing?
Greg-DB
Dropbox Community Moderator
6 years agoAfter authorization, Dropbox does not provide UI, so you should make the necessary API call(s) and display the results in your app's UI as needed.
For listing files and folders, you should use listFolder and listFolderContinue.
- VyacheslavB6 years agoHelpful | Level 5
There is one more question. There is one more question. I get an error when I log out and then re-enter the Dropbox. What is the reason for this?
For logging out I use DropboxClientsManager.unlinkClients()
- Greg-DB6 years ago
Dropbox Community Moderator
I see you're getting the error "Unexpectedly found nil while unwrapping an Optional value" for that line, presumably regarding the "client" variable. This screenshot doesn't show where that variable would be set or unset, but this error indicates that its value is currently nil. Accordingly, attempting to force unwrap it as you are doing fails. You should instead check it is not nil before accessing it.
This isn't specific to Dropbox code though. You can find more information about this in the Swift documentation, or elsewhere, such as this post on StackOverflow.
- VyacheslavB6 years agoHelpful | Level 5
Thanks, I figured it out. I called the dropboxManager.fetchFiles () method when the user is not logged in.
There is another question, when I try to get the list of user's files the message appears
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!