The solution of netERR CLEARTEXT NOT PERMITTED when the WebView in Hongmeng system loads the H5 page

I am currently learning about the development of applications related to the Hongmeng system. When loading the H5 page, the error message net:: [ERR_CLEARTEXT_NOT_PERMITTED] is displayed on the page. After Baidu, the results displayed are all solutions on the Android system:

It is to add android:usesCleartextTraffic=”true” to the application node in the android manifest, and this is the configuration on Hongmeng, just add the following code to the config.json file.

"deviceConfig": {
      "network": {
        "cleartextTraffic": true

After this addition, the content of H5 can be displayed normally. Finally, Hongmeng, come on, programmers, come on, and make Hongmeng better!

Leave a Comment

Your email address will not be published. Required fields are marked *