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

feat(android/cli): Allow to use the old addJavascriptInterface bridge #6043

Merged
merged 3 commits into from
Nov 15, 2022

Conversation

jcesarmobile
Copy link
Member

closes #5949

@@ -123,12 +122,12 @@ public void sendResponseMessage(PluginCall call, PluginResult successResult, Plu

boolean isValidCallbackId = !call.getCallbackId().equals(PluginCall.CALLBACK_ID_DANGLING);
if (isValidCallbackId) {
if (WebViewFeature.isFeatureSupported(WebViewFeature.WEB_MESSAGE_LISTENER) && javaScriptReplyProxy != null) {
if (bridge.getConfig().isUsingLegacyBridge()) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to use an extra if because Android Studio would complain if I put this check with ! on the isFeatureSupported check on the postMessage line

@Charchad

This comment was marked as abuse.

@jcesarmobile jcesarmobile merged commit a6e7c54 into main Nov 15, 2022
@jcesarmobile jcesarmobile deleted the legacybridge branch November 15, 2022 17:42
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: MessageHandler usage of JavaScriptReplyProxy is triggering a native crash on webview
5 participants