ERR_ACCESS_DENIED in Android Webview with sdk 30

When i want to load local html file into webview in my android application webview given error like "ERR_ACCESS_DENIED" .

When the same code working with while target android version 29.

While i was surffing i found that this issue arraises in android 30 with latest changes of android 11 on webview

So we need to add some extra setting options to webview

webSettings.setAllowFileAccess(true);
webSettings.setAllowContentAccess(true);

 

After adding these options for webview settings my files are loaded properly.

 


Flutter Questions
Android Questions