ang3lx opened a new issue, #988:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/988
Hello
I need to close cordova iab after login, and I would do this with post
message from browser in app to hybrid app
I've done with this code:
```
function dLogin() {
var messageObj = {
status: 200,
error: false,
message: "test",
user: {
id: 1,
token: "ABCDEF"
}
};
var stringifiedMessageObj = JSON.stringify(messageObj);
window['webkit'].messageHandlers['cordova_iab'].postMessage(stringifiedMessageObj);
}
```
Android build: all works fine
iOS build: window['webkit'] is not defined. I've tried with:
- window.
- webkit.
- (window as any).webkit
what I'm wrong?
thanks in advance
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]