Skip to content

feat(js-bridge): add bridgeEvents API and typed handler helpers#2794

Open
parkwoocheol wants to merge 2 commits into
pichillilorenzo:masterfrom
parkwoocheol:feature_bridge_events
Open

feat(js-bridge): add bridgeEvents API and typed handler helpers#2794
parkwoocheol wants to merge 2 commits into
pichillilorenzo:masterfrom
parkwoocheol:feature_bridge_events

Conversation

@parkwoocheol

Copy link
Copy Markdown

Connection with issue(s)

Resolve issue #2793

Connected to #???

Testing and Review Notes

  1. Static checks
  • flutter analyze
  1. Bridge events API verification (Advanced > Controllers)
  • Validate JS -> Dart event delivery (bridgeEvents.emit in JS, Dart listener receives payload)
  • Validate Dart -> JS event delivery (Dart emit, JS listener receives payload)
  • Validate on/off/hasListener behavior
  1. Typed handler helper verification
  • Validate addSerializedJavaScriptHandler<TRequest, TResponse>(...) roundtrip
  • Validate addJsonJavaScriptHandler<TRequest, TResponse>(...) roundtrip
  • Confirm existing addJavaScriptHandler behavior is unchanged
  1. Platform validation
  • Android: runtime/integration validation completed
  • Web: build/runtime path validation completed
  • iOS/macOS: additional runtime validation required in local Xcode/CocoaPods environment
  1. Regression checkpoints
  • No hardcoded bridge global name (runtime bridge name is used)
  • No bypass of existing JS communication/security policies
  • New APIs are additive only (no breaking changes)

Screenshots or Videos

Screenshot_1772778744 Screenshot_1772779948

To Do

  • double check the original issue to confirm it is fully satisfied
  • add testing notes and screenshots in PR description to help guide reviewers
  • request the "UX" team perform a design review (if/when applicable)

@probot-autolabeler probot-autolabeler Bot added android iOS linux Linux platform macOS macOS platform platform_interface Platform Interface plugin flutter_inappwebview plugin web windows Windows platform labels Mar 6, 2026
@parkwoocheol parkwoocheol changed the title Feature bridge events feat(js-bridge): add bridgeEvents API and typed handler helpers Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android iOS linux Linux platform macOS macOS platform platform_interface Platform Interface plugin flutter_inappwebview plugin web windows Windows platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant