From 5d329bf49ae37c988dd4caa5f1192cd7cf6146e9 Mon Sep 17 00:00:00 2001 From: yingshaoxo Date: Sun, 19 Apr 2020 22:36:20 +0800 Subject: [PATCH] Update AndroidManifest.tmpl.xml to support HTTP https://stackoverflow.com/questions/52707918/webview-showing-err-cleartext-not-permitted-although-site-is-https https://www.google.com/search?q=net%3A%3AERR_CLEARTEXT_NOT_PERMITTED&oq=net%3A%3AERR_CLEARTEXT_NOT_PERMITTED&aqs=chrome..69i57j69i58.788j0j7&sourceid=chrome-mobile&ie=UTF-8 **This is a key update for webview, without it, webview can't work for android 8 and beyond.** --- .../webview/build/templates/AndroidManifest.tmpl.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml b/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml index d71985c66e..8b6b4ca923 100644 --- a/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml +++ b/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml @@ -49,7 +49,9 @@ android:icon="@drawable/icon" android:allowBackup="true" android:theme="{{args.android_apptheme}}{% if not args.window %}.Fullscreen{% endif %}" - android:hardwareAccelerated="true" > + android:hardwareAccelerated="true" + android:usesCleartextTraffic="true" + > {% for l in args.android_used_libs %} {% endfor %}