我正在使用 WebView 来加载我公司的网站 . 一切正常,直到用户使用他们的facebook或googleplus帐户登录 . 在默认的Android浏览器或任何Android浏览器上,登录过程会创建一个新选项卡,让用户登录,然后自动关闭选项卡并使用用户内容重定向到上一个选项卡,它可以正常工作 . 但是,当我禁用cookie时,它会停止工作 .

用户使用我的WebView登录后,它不会重定向到原始URL . 如果我按回,OAuth数据不会传回WebView . 这就是LogCat向我展示的内容:

05-17 19:39:24.615: E/Web Console(31990): Unable to post message to http://mycomp.website.com Recipient has origin https://authentication_endpoint

我'm not sure if this is because I'我没有将OAuth数据发回mycomp.website.com - 如果是'm not sure how to fix this. I know I need to handle cookies somehow, but I'我不知道如何实现 CookieManager . 任何见解将不胜感激 .