appwebview 中的 contentblocker 问题

问题描述

嗨,我尝试使用 ContentBlocker 阻止广告,但它不起作用,我尝试使用 androidShouldInterceptRequest 并且它工作正常但在 ios 上不可用 为了测试,我只是尝试阻止所有包含“voiranime”的网址,我使用正则表达式“.*voiranime.*”但不起作用

contentBlockers:[
           ContentBlocker(
               trigger: ContentBlockerTrigger(urlFilter: ".*voiranime.*",),action: ContentBlockerAction(
                   type: ContentBlockerActionType.BLOCK
               )
           ),],

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)