We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
TimB-Dev
9 years agoHelpful | Level 5
Authorization web page not redirecting back to my app in Android
In our Android app, I am having an issue where the dropbox.com authorize web page does not redirect back to our app when the user clicks the Allow button. I wrote a sample app and the OAuth2 flow wo...
Greg-DB
Dropbox Community Moderator
9 years agoThanks! Unfortunately I don't see anything out of the ordinary here. A few ideas next:
- It might be useful to see if there are any errors coming up in the JavaScript console, e.g., using Chrome remote debugging: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/
- Also, can you try it in a non-Chrome browser?
- If you want, share a build that produces the issue with us and we'll try to troubleshoot it here: https://www.dropbox.com/developers/contact
- It might be useful to see if there are any errors coming up in the JavaScript console, e.g., using Chrome remote debugging: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/
- Also, can you try it in a non-Chrome browser?
- If you want, share a build that produces the issue with us and we'll try to troubleshoot it here: https://www.dropbox.com/developers/contact
TimB-Dev
9 years agoHelpful | Level 5
Just getting back into this... I will follow the other suggestions, but thought I'd report this. With Chrome Remote debugging, I see one warning when the page is first opened:
conversion.js:27 Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
One other thing is that the url does not seem to include a "redirect" parameter. Should it?
- Greg-DB9 years ago
Dropbox Community Moderator
Thanks! We'll look into that error.
And no, (as long as the authorization page URL starts with https://www.dropbox.com/1/connect as expected) that page should not have a redirect parameter. It's a special page for apps using the official SDK and knows about the db-<APP_KEY> URL schemes by default.
Speaking of the URL, can you share a sample one from a case where this issue occurs? That would be good to verify. Additionally, the specific version number(s) for the version(s) of Chrome where you're seeing this may be useful, in case we're using different versions.- TimB-Dev9 years agoHelpful | Level 5
Chrome version is 61.0.3163.98 on both the Android 7.1.1 and 6.0.1 devices.
URL is... (with "xxx" being my app id)...
- Greg-DB9 years ago
Dropbox Community Moderator
Thanks. That's actually the same version I've been testing on (albeit on Android 7.0.0). Your URL also looks correct, so we'll have to keep investigating.
Some remaining things that would be useful:
- whether or not this occurs with a non-Chrome browser
- a sample build that reproduces the issue that we can try
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!