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
leninsmannath
5 years agoExplorer | Level 3
Can't close the page after authentication
Hi
I use the below code for dropbox login
DropboxClientsManager.authorizeFromController(UIApplication.shared, controller: self, openURL: {(url: URL) -> Void in UIApplication.shared.openUR...
- 5 years ago
Thanks! I see you don't actually have the "Handle redirect back into SDK" step implemented in your AppDelegate.swift. Please make sure to add that as documented.
Also, I noticed from your use of 'UIApplicationSceneManifest' in your Info.plist that this uses scenes, so make sure you also implement the handler in SceneDelegate.swift as noted here.
leninsmannath
Explorer | Level 3
The dropbox version used is 5.1.0
I created a new project and do the same thing. The issue is still on that app too.
Here is the source code: https://github.com/leninsmannath/DropboxSampleApp
give your dropbox API key and check the above sample project.
Thanks
Greg-DB
5 years agoDropbox Staff
Thanks! I see you don't actually have the "Handle redirect back into SDK" step implemented in your AppDelegate.swift. Please make sure to add that as documented.
Also, I noticed from your use of 'UIApplicationSceneManifest' in your Info.plist that this uses scenes, so make sure you also implement the handler in SceneDelegate.swift as noted here.
- leninsmannath5 years agoExplorer | Level 3
Thanks, Greg. It's working cool.
I implemented the redirect back into SDK on AppDelegate.swift on original source code, forgot to do in the sample sent to you.
But I didn't implement the handler in SceneDelegate.swift.
You already mentioned the https://github.com/dropbox/SwiftyDropbox/issues/259 in your reply. Sorry I didn't check it properly. I apologize for it.
Anyway thanks for your patience and support.
Thanks, Greg
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,918 PostsLatest Activity: 2 days 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!