apache / apache/cordova-plugin-inappbrowser

postMessage doesn't work :Android

Open
#472 3 comments 1 reaction 0 assignees View on GitHub
platform: android support
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

# Bug Report
the event message do postMessage doesn't get the message. (in Android)

## Problem
I try the default version and version 2.0.2 and it's doesn't work.

I create new WebView (for example: google), with eventListener "message":
![image](https://user-images.githubusercontent.com/33927385/57191947-cde71700-6f33-11e9-87a7-4d5653b3e168.png)

In the console of the new WebView i try to postMessage (with to way : [window.parent.postMessage , window.postMessage])
![image](https://user-images.githubusercontent.com/33927385/57192013-7eedb180-6f34-11e9-967e-6cfb85f798fa.png)

and i doesn't get the message in the first console .

Of course I tried too get the message with console.log...

thank's

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Reproduce both postMessage calls in an Android InAppBrowser WebView, then trace the plugin's message-event handling; done means the receiving WebView logs the posted message on the affected versions and a regression test covers the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.