Android Webview and Facebook not working

I am having a problem with the webview application I'm working on.

We have this responsive website that is displayed via android webview.

The website has the option "Login using facebook", this work works fine in a mobile browser. And even on the Site he himself. But when I try to use the webview application to log in using facebook, it leads to white screens.

I find it difficult to find a solution to make this work.

Go to the tips.

+6
source share
2 answers

I managed to find a solution based on a previous question about stackoverflow.com

Create facebook login with android web browser

Here is a link to my MainActivity: http://pastebin.com/KdzfhqDJ

+7
source

I am sure this is the same question . Essentially, it opens in another window, and WebView does not support multiple windows out of the box.

Fortunately for you, unlike this iOS-specific question, if I remember correctly, you can extend the WebView to support multiple windows. You need to extend WebChromeClient , implement onCreateWindow and use it in WebView .

+3
source

Source: https://habr.com/ru/post/969654/


All Articles