Open manhlh opened 5 years ago
I also met, did you solve it?
I also met, did you solve it?
Yep, i can fix it. You download and replace "cordova-plugin-themeablebrowser" plugin in plugin folder. step: remove plugin themeable > remove platform > add platform > replace themeable > build
Download here: https://drive.google.com/file/d/1SMC9-xggI1gA-Z9reHE2nnfnVdrrfFUm/view?usp=sharing
I use Ionic 3 and Themeable Browser library, I custom button in toolbar Themeable Browser and first time click SitePointSitePressed() not run BUT click second time then run 2 event. My Code ` const me = this; this.ref = cordova.ThemeableBrowser.open(this.productUrl, '_blank', options) .addEventListener('loadstart', function () { console.log('loadstart') me.viewProduct = false; }).addEventListener('loadstop', function (event) { console.log('load done');
}).addEventListener('loaderror', function (event) { console.log('load error'); }).addEventListener('exit', function (x) { console.log('exit app'); me.clear(); }) .addEventListener('SitePointSitePressed', function (x) { me.dialogs.confirm( "", // title me.transText['addOrder'], // message
['OK', me.transText['quit']] // buttonLabels, ).then(onConfirm);