1
I have a page and I’m trying to turn it into Webview App. I generated an apk when I got to the javascript section, but the page inside the app is static, locked. When entering the site through the browser, it works perfectly. It opens a screen showing name and logo and in a few seconds goes to the home screen. What happens, is that in the app, the screen is stopped on this first screen (with name and logo).
How can I debug the page in Webview to check what is happening with the code?
Mainactivity.java:
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
WebView webView = findViewById(R.id.webview);
webView.loadUrl("https://estilofacul.com.br");
webView.getSettings().setJavaScriptEnabled(true);
webView.setWebViewClient(new WebViewClient());
webView.setWebChromeClient(new WebChromeClient());
}
}
Probably the site uses some more modern ES6 functionality (which is often unnecessary) and webView has no support for this. And no, there is no way to force webView to support something, it depends on the engine.
– Guilherme Nascimento
Thank you William, I will make some tests and having a solution answered here..
– Dani
Hello @Dani, I edited your question to give a goal but clear to it, if this issue does not represent your problem you can reverse here. =D
– Icaro Martins