Themeable browser events

How do you get this to work?

I have:

  const browser: ThemeableBrowserObject = this.themeableBrowser.create(this.link, '_blank', options)
           
           browser.on('sharePressed'), function(e) {
                      alert('wds');
           };

Doesn’t work.

In this case I have by-passed the ionic version of this plugin and gone with the Cordova version. Work fine.

 const browser =  cordova.ThemeableBrowser.open(this.link, '_blank', options);
        
         browser.addEventListener('openPressed', function(e) {
			alert('here');
         });
1 Like