It works well when I log in to a shopping mall on a regular Internet app, but it keeps saying that I failed to log in with a web view.

Asked 2 years ago, Updated 2 years ago, 76 views

As the title suggests, login works well on general Internet apps.

I made an Android project and tried to log in on the web view, but it keeps failing

What's the reason...?

Do we need additional code?

Please answer!

android webview login

2022-09-22 11:35

1 Answers

You need to check how you set the webview code. Webview has JavaScript disabled by default. Please check the code below and add it if you don't.

webView.getSettings().setJavaScriptEnabled(true);


2022-09-22 11:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.