Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.3, on macOS 15.1.1 24B91 darwin-arm64, locale pl-PL)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.96.4)
[✓] Connected device (5 available)
[✓] Network resources
• No issues found!
Steps to reproduce
Expected results
onMessageReceived callback should receive instance of JavascriptMessage with 'undefined' message as a string.
Actual results
App crashes with an exception
Code sample
After 5 seconds js will send deadly command to application.
Code sample
Screenshots or Video
Screenshots / Video demonstration
Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2025-01-29.at.00.56.08.mp4
Logs
Logs
webview_flutter_wkwebview/ProxyAPIRegistrar.swift:71: Fatal error: webview_flutter_wkwebview.PigeonError: Error returned from calling WKScriptMessageHandler.didReceiveScriptMessage: Optional("Null check operator used on a null value")Flutter Doctor output
Doctor output