Has anyone gotten the Dropbox API v2 working in a Cordova mobile application? Or even a mobile application period? There is a tutorial for the API v1 & Cordova: http://ourcodeworld.com/articles/read/149/how-to-use-dropbox-in-a-cordova-application But Dropbox has or is deprecating it.
I have a Github project that is a basic Cordova project (version 6.5.0) and has the Dropbox API v2 included. I can get the project to get to the authorization screen but I believe my issue is the redirect URI.
I'm using:
- Cordova 6.5.0
- testing on Android
- Dropbox API v2: https://github.com/dropbox/dropbox-sdk-js
- Authorization example: https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/auth/index.html
But again, I have already put everything into a Github repo: https://github.com/ModusPwnens1337/dropboxTest
I believe the redirect URI is the issue, you can find it on line 128 in the index.html:
var authUrl = dbx.getAuthenticationUrl('https://www.dropbox.com/oauth2/authorize?response_type=token&client_id=8nvbrxvlg96tx1k&redirect_uri=helloworld://localhost/callback');
Please let me know if anyone has gotten or can get the authorization to redirect back to the mobile app.
Thank you in advance!