cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Loading URL for login is failed in android webview

Loading URL for login is failed in android webview

printappdev
Explorer | Level 4

Hello.

Actually, our device doesn't have a browser. so I used android webview for OAuth login.

Sometimes loading login page was failed. The blank page was displayed. 

 

Do you have any ideas to solve this problem? 

 
Below is the chromium log.
Device android version : Android 4.4.2 (KitKat)
Log

I/chromium: [INFO:CONSOLE(0)] "Refused to load the script '' because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' https://www.dropbox.com/static/compiled/js/ https://www.dropbox.com/static/api/ https://www.dropbox.com/page_success/ https://cfl.dropboxstatic.com/static/compiled/js/ https://www.dropboxstatic.com/static/compiled/js/ https://cfl.dropboxstatic.com/static/js/ https://www.dropboxstatic.com/static/js/ https://cfl.dropboxstatic.com/static/previews/ https://www.dropboxstatic.com/static/previews/ https://cfl.dropboxstatic.com/static/api/ https://www.dropboxstatic.com/static/api/ https://cfl.dropboxstatic.com/static/cms/ https://www.dropboxstatic.com/static/cms/ https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/ 'unsafe-inline' ".

 

Thanks

1 Reply 1

Greg-DB
Dropbox Staff

The Dropbox OAuth app authorization page should only be processed in the user's system browser. Using a web view is not officially supported, so I'm afraid I can't offer help with this. 

That said, Android 4.4.2 itself is relatively old and I believe is itself no longer officially supported by Google, so you may want to look into upgrading to a newer version. Or, at least upgrading the version of Chromium used in your webview, if possible, as that may help with the issue.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?