We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With InAppBrowser it's possible to use webkit.messageHandlers.cordova_iab.postMessage. But with ThemeableBrowser webkit is undefined
private options: ThemeableBrowserOptions = { statusbar: { color: "#ffffffff", }, toolbar: { color: "#ffffffff", height: 44, }, title: { color: "#ffffffff", showPageTitle: false, }, backButton: { wwwImage: "assets/icon/arrow-back.png", align: "left", event: "backPressed", }, closeButton: { wwwImage: "assets/icon/close.png", align: "right", event: "closePressed", }, backButtonCanClose: false, hidden: true, }; const browserSSO: ThemeableBrowserObject = this.themeableBrowser.create( this.currentPage, "_blank", this.options ); browserSSO.on("loadstop").subscribe(() => { if (browserSSO != undefined) { browserSSO.executeScript({ code: "\ var message = 'this is the message';\ var messageObj = {my_message: message};\ var stringifiedMessageObj = JSON.stringify(messageObj);\ webkit.messageHandlers.cordova_iab.postMessage(stringifiedMessageObj);", }); browserSSO.show(); } }); browserSSO.on("message").subscribe(e => { alert("message received"); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With InAppBrowser it's possible to use webkit.messageHandlers.cordova_iab.postMessage.
But with ThemeableBrowser webkit is undefined
The text was updated successfully, but these errors were encountered: