Closed Henry-ZHR closed 2 years ago
https://github.com/TigerBeanst/RnIntentClean/blob/37ef65726a8131c74751667423b5f09ac941a507/app/src/main/java/com/jakting/shareclean/utils/ext.kt#L77
只有 http 的话,至少在我这只能清理掉 http 链接的打开方式,对 https 链接无效
一个想法是直接查对应的 intent-filter 声明了哪些 scheme,然后全部 block 掉,但我没找到有 API 可以实现
我之前尝试 zhihu:// 结果没拦下来。。。
zhihu://
但至少把 https 拦了吧……
我这里 https 是能拦的
https://github.com/TigerBeanst/RnIntentClean/blob/37ef65726a8131c74751667423b5f09ac941a507/app/src/main/java/com/jakting/shareclean/utils/ext.kt#L77
只有 http 的话,至少在我这只能清理掉 http 链接的打开方式,对 https 链接无效
一个想法是直接查对应的 intent-filter 声明了哪些 scheme,然后全部 block 掉,但我没找到有 API 可以实现