Skip to content

Conversation

@m2nhyun
Copy link

@m2nhyun m2nhyun commented Aug 14, 2025

🐛 Problem

On Android, injectedJavaScriptBeforeContentLoaded fails to execute reliably, causing bridge initialization failures.

🔧 Solution

Added bridge state injection to injectedJavaScript as a fallback mechanism:

injectedJavaScript={[
    INJECT_BRIDGE_STATE(initData.bridgeMethods),  // Added
    INJECT_BRIDGE_STATE(initData.initialState),  // Added
    debug && INJECT_DEBUG(uniqueId),
    props.injectedJavaScript,
    "true;",
].filter(Boolean).join("\n")}

@gronxb
Copy link
Owner

gronxb commented Aug 14, 2025

Thanks for your contribution !

Could you check lint?

@m2nhyun m2nhyun closed this Dec 4, 2025
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.

2 participants