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 2020/03/18 04:55:09 UTC
[GitHub] [cordova-plugin-inappbrowser] LouiMinister commented on issue #646:
@3.2.0 can't call webkit.messageHandlers.cordova_iab.postMessage
LouiMinister commented on issue #646: @3.2.0 can't call webkit.messageHandlers.cordova_iab.postMessage
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/646#issuecomment-600424441
You have to check below
1. Are you using wkwebview instead of uiwebview
In my opinion, wkwebview can handle message but uiwebview isn't
2. At webpage javascript, use this code
` window.webkit.messageHandlers.cordova_iab_postMessage("message");`
After I write 'window.webkit' instaed of just 'webkit', my code was worked
----------------------------------------------------------------
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