senthilnasa / high_chart

https://senthilnasa.github.io/high_chart/
MIT License
24 stars 23 forks source link

在debug模式下提示有关isInspectable的错误 #31

Open yuxingmin opened 1 month ago

yuxingmin commented 1 month ago

修复:https://github.com/flutter/flutter/issues/126899

从iOS 16.4版本开始,现在可以在WKWebView中更改isInspectable属性的值。

https://developer.apple.com/documentation/webkit/wkwebview/4111163-isinspectable

从iOS 16.4开始,Web检查器功能默认被禁用。 因此,要使用Web检查器,需要更改isInspectable的值。

这是一篇来自WebKit的博客文章,讨论了这个问题 https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/

苹果开发者论坛线程(iOS 16.4 webview无法在Safari web inspector中调试) https://developer.apple.com/forums/thread/727049

yuxingmin commented 1 month ago

修改:
if (_controller.platform is WebKitWebViewController) { WebKitWebViewController webKitWebViewController = _controller.platform as WebKitWebViewController; // webKitWebViewController.setInspectable(kDebugMode);//屏蔽 }