Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower versions of Chrome does not work #50

Closed
weblol opened this issue Jun 25, 2024 · 5 comments
Closed

Lower versions of Chrome does not work #50

weblol opened this issue Jun 25, 2024 · 5 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@weblol
Copy link

weblol commented Jun 25, 2024

Thank you for your work!
In lower versions of Chrome (such as Chrome 62),bridge does not work。

Print Information:
1、bridge.isWebViewBridgeAvailable is always false
2、window.bridgeMethods is also undefined

@gronxb
Copy link
Owner

gronxb commented Jun 25, 2024

Hello. In what situations might someone use an older version of Chrome?

Is it using old Android devices?

@weblol
Copy link
Author

weblol commented Jun 25, 2024

Hello. In what situations might someone use an older version of Chrome?

Is it using old Android devices?

Yes, our users' Android devices may still be Android 8 or Android 9, and the built-in webview version is chrome62-69

@gronxb
Copy link
Owner

gronxb commented Jun 26, 2024

@weblol

react-native-webview/react-native-webview#1099 (comment)

It seems to be related to the issue. Although it has been a while, the matter is not yet fully resolved.
webview-bridge uses injectedJavaScriptBeforeContentLoaded in WebView to inject usable methods.

I have confirmed that this does not work properly in older versions of Chrome.
I will consider an alternative solution as soon as possible.

@gronxb gronxb self-assigned this Jun 26, 2024
@gronxb gronxb added the help wanted Extra attention is needed label Jun 26, 2024
@gronxb
Copy link
Owner

gronxb commented Jun 30, 2024

@weblol

The issue where the connection between native and web was not seamless has been resolved by adding a logic to rehydrate when necessary. The testing has been completed on Android 8 (Chrome 58), and it is confirmed to be functioning correctly. Please check version 1.5.1.

@gronxb gronxb closed this as completed Jun 30, 2024
@weblol
Copy link
Author

weblol commented Jul 1, 2024

@weblol

The issue where the connection between native and web was not seamless has been resolved by adding a logic to rehydrate when necessary. The testing has been completed on Android 8 (Chrome 58), and it is confirmed to be functioning correctly. Please check version 1.5.1.

Thank you very much, your work solved my problem.

@gronxb gronxb added the bug Something isn't working label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants