Android Question Android Webview Show URL Error

touchvip

Member
Licensed User
Longtime User
ERR_NAME_NOT_RESOLVED error when using webview to display the webpage, but there is no problem using the built-in Chrome
 

JohnC

Expert
Licensed User
Longtime User
Is the URL a non-SSL (http)?

If so, android doesn't allow non-ssl connection by default, so you might need to add a line to the manifest.

See item #28 on this page:


B4X:
 28 - Non-ssl (non-https) communication is not permitted by default. It can be enabled in B4A v9+ by adding this line to the manifest editor:

 B4X:  CreateResourceFromFile(Macro, Core.NetworkClearText)
 
Upvote 0

touchvip

Member
Licensed User
Longtime User
Add this to project manifest
SetApplicationAttribute(android:usesCleartextTraffic, "true")
and
CreateResourceFromFile(Macro, Core.NetworkClearText)
problem solved
 
Upvote 0
Top