We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
gdurrett
7 years agoHelpful | Level 6
SwiftyDropBox Auth flow issue
I'm following the SwiftyDropbox documentation for my project, and have gotten as far as having my app switch to authenticating via the Dropbox app and switching back into my app. However, the ...
- 7 years ago
Greg, that was the issue! Thanks kindly, and I wish I'd noticed that myself so I could have saved us both some time. Oy!!!!
Greg-DB
7 years agoDropbox Staff
Thanks for the report! Can you share:
- the version number of SwiftyDropbox you're using
- the version(s) of iOS you're seeing this with
- the exact `open url` code you have in your app delegate
Thanks in advance!
- the version number of SwiftyDropbox you're using
- the version(s) of iOS you're seeing this with
- the exact `open url` code you have in your app delegate
Thanks in advance!
- gdurrett7 years agoHelpful | Level 6
Thanks for the quick reply, Greg.
SwiftyDropbox version: 4.3.0
iOS version: 11.2.2
'open URL' code (identical to reference code):
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool { if let authResult = DropboxClientsManager.handleRedirectURL(url) { switch authResult { case .success: print("Success! User is logged into Dropbox.") case .cancel: print("Authorization flow was manually canceled by user!") case .error(_, let description): print("Error: \(description)") } } return true }
- Greg-DB7 years agoDropbox StaffThanks! That looks correct. So to clarify, are you sure `open url` itself isn't getting called, or does it appears `handleRedirectURL` isn't working properly?
To check, please add some logging immediately inside `open url` (i.e., before `handleRedirectURL`). If it does get called, it would help to log and post the `open url` parameters for reference. (Just be sure to redact secret values, such as an access token.)- gdurrett7 years agoHelpful | Level 6
Hi Greg,
When I put a print statement directly after 'open url' and immediately before 'handleRedirectURL', the print statement is not executed (even after successfully authenticating to Dropbox and switching back to my app).
Is there any other debugging I can do?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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!