Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
randynwalsh
10 years agoNew member | Level 2
Problem and 2 possible solutions for Cordova-PhoneGap OAuth
The problem with Cordova / PhoneGap is that is isn't really a browser nor is it a server and to get a user oauth-authenticated requires browsing to the dropbox choser url. So, a dropbox app must ...
Greg-DB
Dropbox Community Moderator
10 years agoThanks for the post Randy! I'm not too familiar with Cordova/PhoneGap, and this is a bit outside the scope of Dropbox support, so I'm afraid I can't be of much help myself, but hopefully someone else here can chime in.
One thing I can note though, is that another possible (albeit non-ideal) solution is to use the "code" flow without specifying a redirect URI, in which case the user would need to copy and paste the authorization code from the Dropbox web site into your app:
https://www.dropbox.com/developers/documentation/http/documentation#authorization
One thing I can note though, is that another possible (albeit non-ideal) solution is to use the "code" flow without specifying a redirect URI, in which case the user would need to copy and paste the authorization code from the Dropbox web site into your app:
https://www.dropbox.com/developers/documentation/http/documentation#authorization
- Steve M.10 years ago
Dropbox Staff
You might want to take a look at https://github.com/dropbox/dropbox-js/blob/0af3014a14771f951d533d812001efb04bf68978/src/auth_driver/cordova.coffee. That's from the old deprecated JS SDK, but it hopefully shows the pattern for using Cordova's InAppBrowser control.
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!