Android Question WebView refuses to load in android 10

SergeNova

Member
Hello everyone, I have a problem. When I install my application on an android lower than android 10 the WebView loads the pages normally but when I install the application on the android 10 or android P the WebView does not load and displays the following message (Unable to load the web page at http://www.google.com Net :: ERR_NAME NOT RESOLVED). I thought it was because of the permission (android.permission.INTERNET), I added it but it doesn't always work. So I don’t really know what’s missing, so I need some help. Thanks


 

JohnC

Expert
Licensed User
Longtime User
Try adding this line to your Manifest:

B4X:
SetApplicationAttribute(android:usesCleartextTraffic, "true")

This is needed to allow non-ssl connections from android 9.0+

 
Upvote 0

SergeNova

Member
yes thank you for the answer, I will try and then I will tell you the rest. And sorry for this picture, it didn't belong to this question
 

Attachments

  • 1600201713608.png
    312 bytes · Views: 147
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…