From ad9f90fffb6bcf047f772940f2f7579612e38eae Mon Sep 17 00:00:00 2001 From: Erik Svalander Date: Tue, 5 Oct 2021 11:46:39 +0200 Subject: [PATCH] The setAllowFileAccess setting was true before SDK 30 but is now false, so you explicitly need to allow access. --- .../src/main/java/com/flutter_webview_plugin/WebviewManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java b/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java index e19b2a08..7289a1e7 100644 --- a/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java +++ b/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java @@ -396,6 +396,7 @@ void openUrl( webView.getSettings().setAllowFileAccessFromFileURLs(allowFileURLs); webView.getSettings().setAllowUniversalAccessFromFileURLs(allowFileURLs); + webView.getSettings().setAllowFileAccess(allowFileURLs); webView.getSettings().setUseWideViewPort(useWideViewPort);