You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/02 19:20:14 UTC

[GitHub] Leonavas edited a comment on issue #420: postMessage example from documentation doesn't work

Leonavas edited a comment on issue #420: postMessage example from documentation doesn't work
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/420#issuecomment-468938791
 
 
   @FarhadG Im facing the exact same situation, but even switching to the master branch (3.1.0-dev) as @dpa99c mentioned, the "message" listener is never fired. Are there any extra steps you had to take to make this work? 
   
   EDIT: Managed to make it work. If anyone gets stuck with this, the solution is to make something like this on the child page:
   window['webkit'].messageHandlers['cordova_iab'].postMessage(JSON.stringify({'data': 'value'}))

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org