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 2018/12/14 08:17:48 UTC

[GitHub] yelban commented on issue #362: (iOS & Android) Add postMessage API support

yelban commented on issue #362: (iOS & Android) Add postMessage API support
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/362#issuecomment-447249973
 
 
   (iOS & Android) Add postMessage API support (#362)
   
   postMessage is not working in iOS 12.0
   ( android is work like a charm )
   
   test process
   UIWebView APP side
   
   > function messageCallBack(params){
   >     console.log(params.data);
   > }
   > 
   > var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes');
   > 
   > ref.addEventListener('message', messageCallBack);
   
   inAppBrowser side
   
   > var message = 'this is the message';
   > var messageObj = {my_message: message};
   > var stringifiedMessageObj = JSON.stringify(messageObj);
   > webkit.messageHandlers.cordova_iab.postMessage(stringifiedMessageObj);
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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