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

Question: postMessage API - App -> inAppBrowser Window #925

Open
meck93 opened this issue Dec 21, 2021 · 4 comments
Open

Question: postMessage API - App -> inAppBrowser Window #925

meck93 opened this issue Dec 21, 2021 · 4 comments

Comments

@meck93
Copy link

meck93 commented Dec 21, 2021

Hi everyone! I'm asking the question here since the link to sign up to Cordova Slack doesn't seem to work: http://slack.cordova.io and I couldn't find another way to sign up to the Slack channel.

Context
The postMessage API has been implemented (#362) and is documented here: https://github.com/apache/cordova-plugin-inappbrowser

What have I tried to do?
So far I was only able to find documentation for the direction from inside the inAppBrowser window to the context running the inAppBrowser - most of the case the native/cordova app (i.e. inside -> outside). Is it also possible to send a message from the outside to the inside. Basically, in the same direction that executeScript() and injectCSS()work.

What would I like to achieve?
Currently, I'm launch the inAppBrowser, navigate to a specific URL which is also under my control on which I have registered an event handler window.addEventListener("message",...). Now, I would like to post a message from the app code to the inAppBrowser instance (i.e. the browser window that is on this specific url) once a event happens on the native device. Is this possible?

@meck93 meck93 changed the title Question: postMessage API - device -> inAppBrowser window Question: postMessage API - App -> inAppBrowser Window Dec 21, 2021
@breautek
Copy link
Contributor

Hi everyone! I'm asking the question here since the link to sign up to Cordova Slack doesn't seem to work: http://slack.cordova.io and I couldn't find another way to sign up to the Slack channel.

Yah, I'm trying to track down who manages the app... in the mean time, this link should work for slack https://join.slack.com/t/cordova/shared_invite/zt-z70vy6tx-7VNulesO0Qz0Od9QV4tc1Q

Unfortunately I don't have the experience to comment more on your particular issue, but someone in Slack might be able to.

@meck93
Copy link
Author

meck93 commented Dec 22, 2021

@breautek thanks! I have asked in the Slack channel. Let's see!
https://cordova.slack.com/archives/C068CHRJ5/p1640178856173200

@mdivya-symplr
Copy link

@meck93 Did you get any solution for this problem?

@meck93
Copy link
Author

meck93 commented Mar 17, 2022

@mdivya-symplr no, unfortunately not, no one was able to answer my question. It seems the feature is not implemented.

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

No branches or pull requests

3 participants