T touchvip Member Licensed User Longtime User Jan 21, 2020 #1 ERR_NAME_NOT_RESOLVED error when using webview to display the webpage, but there is no problem using the built-in Chrome
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 Jan 21, 2020 #2 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: android.jar / targetSdkVersion / minSdkVersion There are several versioned components that affect the compilation process and the runtime behavior of our apps. The purpose of this tutorial is to explain the differences between them and help you choose which version to use. Each Android version is mapped to an api level. You can see this... www.b4x.com B4X: Copy 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
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: android.jar / targetSdkVersion / minSdkVersion There are several versioned components that affect the compilation process and the runtime behavior of our apps. The purpose of this tutorial is to explain the differences between them and help you choose which version to use. Each Android version is mapped to an api level. You can see this... www.b4x.com B4X: Copy 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)
T touchvip Member Licensed User Longtime User Jan 22, 2020 #3 Add this to project manifest SetApplicationAttribute(android:usesCleartextTraffic, "true") and CreateResourceFromFile(Macro, Core.NetworkClearText) problem solved Upvote 0
Add this to project manifest SetApplicationAttribute(android:usesCleartextTraffic, "true") and CreateResourceFromFile(Macro, Core.NetworkClearText) problem solved