google / cordova-plugin-browsertab

A Cordova plugin that provides an interface to in-app browser tabs that exist on some mobile platforms, such as SFSafariViewController on iOS and CustomTabs on Android.
Apache License 2.0
117 stars 147 forks source link

Open new browserTab _system not working correctly #32

Open engharb opened 5 years ago

engharb commented 5 years ago

Hi,

I tried the following:


// in constructor : private browserTab: BrowserTab,
this.browserTab.isAvailable().then(
            isAvailable => {

                if (isAvailable) {
                    this.browserTab.openUrl(
                        "myTestUrl"
                    ).then(onfulfilled => {
                        alert("Succeeded");
                    }).catch(err => {
                        alert("errorrrrrr");
                    });
                }
            }
        ).catch( err => {
            alert(JSON.stringify(err));
        });
`
``
I want to keep an event listener to the opened tab in order to read i.e url or other features.

Unfortunately that is not possible. 

I'm using 
* Ionic-core:4
* angualr5
* typescript

Any suggestion?