A Flutter plugin that fixes iOS WebView crashes caused by uncalled completion handlers in WKWebView navigation delegate methods.
Related issue: flutter/flutter#102476
English | ็ฎไฝไธญๆ
Chat: Join WeChat group
โ
Zero Configuration: Works out of the box - just add the dependency
โ
Non-Intrusive: Uses method swizzling without modifying your existing code
โ
Safe Defaults: Invokes missed completion handlers with sensible default values
โ
Optional Logging: Enable detailed logging for debugging purposes
Add this to your package's pubspec.yaml file:
dependencies:
webview_completion_fix: latest_versionThen run:
flutter pub getInstallation complete! No additional configuration needed. Now you can enjoy using it ๐ฅณ
To help diagnose issues, you can enable detailed logging by adding the following to your iOS app's Info.plist:
<key>WCFEnableLogging</key>
<true/>Location: ios/Runner/Info.plist
With logging enabled, you'll see detailed console output:
If you're still seeing crashes related to completion handlers after installing this plugin, please:
- Verify the plugin is properly initialized by checking the console logs (with
WCFEnableLoggingenabled) - Report the issue with detailed logs to our issue tracker
Contributions are welcome! Please feel free to submit a Pull Request.
- GitHub: https://github.com/LinXunFeng
- Email: linxunfeng@yeah.net
- Blogs:
- ๅ จๆ ่กๅจ: https://fullstackaction.com
- ๆ้: https://juejin.cn/user/1820446984512392


