You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/09/09 15:29:47 UTC

[GitHub] [cordova-plugin-inappbrowser] sardapv edited a comment on issue #777: event "message" not triggered on ios with version is '4.0.0'

sardapv edited a comment on issue #777:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/777#issuecomment-689638796


   Hello @AlwaysLoveme , Please go through documentation.
   Post message needs a stringified object . That is because of WkWebView on iOS.
   
   do something like this in your web code:
   
   ```
   var data  = '12345';
   var message = { message: data };
   window.webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify(message));
   ```


----------------------------------------------------------------
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



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