Skip to content

fix(android): update reply proxy before plugin call - #8617

Open
MateStrysewske wants to merge 1 commit into
ionic-team:mainfrom
MateStrysewske:fix/android-reply-proxy-before-dispatch
Open

MateStrysewske wants to merge 1 commit into
ionic-team:mainfrom
MateStrysewske:fix/android-reply-proxy-before-dispatch

Conversation

@MateStrysewske

Copy link
Copy Markdown

Description

Update the reply proxy before dispatching a page's first call to avoid quick replies going through the old proxy.

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Rationale / Problems Fixed

Fixes #8616

Tests or Reproductions

In an app whose module graph starts with a top-level await Preferences.get(...), running the instrumentation suite on an Android 16 emulator, where the tests reload the WebView between steps:

  • Unpatched 8.4.0: the reloaded page went blank in 3 out of 3 suite runs. Verbose bridge logging shows the first Preferences.get leaving the page and nothing following it while evaluateJavascript probes keep answering.
  • With this change applied (with a yarn patch on 8.4.0), the blank pages disappear and the same first call is followed by the rest of the startup.

Platforms Affected

  • Android
  • iOS
  • Web

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Plugin call after navigation can be answered before reply proxy is updated

1 participant