How to block ads in a flutter webView ( web page in mobile app )

Viewed 778

I have made an app using the webview_flutter plugin, the webviews leads to a URL that streams a video. But there's a new advertisement pop-up every time I enter this webview. I'd be glad if anyone could provide a solution to prevent this from happening. I find a way to do that but for android native (check the link for more information : github repository

1 Answers

i think you can't do that the only way is "Disable JavaScript" parameter on Webview by javascriptMode: JavascriptMode.unrestricted,

Related