You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
VyacheslavB
5 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...
- 5 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
Helpful | Level 5
Thank you, your advice helped me! Now when I press Accept, it brings me back to my View. And if I press my button again to go to the Dropbox, then the View appears again with the question Accept or Cancel. Is that how it should be?
Greg-DB
5 years agoDropbox Staff
No, you only need to process the app authorization flow once per user (unless they disconnect your app from Dropbox and want to reconnect it again).
Once they authorize your app, and your app receives the result via the "Handle redirect back into SDK" step, you shouldn't call authorizeFromController[V2] again. You'll likely want to remove that button from your UI at that point and replace it with some sort of "connected" state to show the user that they've successfully connected the app to the Dropbox. (You can also offer a way for them to disconnect it and show that button again.)
You can check authorizedClient to see that the user is connected and that you have a client to call Dropbox with, and then use it to make API calls, as shown in the "Try some API requests" section.
- VyacheslavB5 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-DB5 years agoDropbox Staff
After 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.
- VyacheslavB5 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()
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 33 minutes ago
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!