InAppBrowser Ionic2 How to change design of browser


#1

var browser = new InAppBrowser(‘https://lc.chat’, ‘_blank’);
console.log(browser);

    browser.on("loadstop")
        .subscribe(
        () => {

            console.log(browser);
            browser.insertCss({
                code:
                "body{display:none}"
            })
        },
        err => {
            console.log("InAppBrowser Loadstop Event Error: " + err);
        });

This is creating error –
caused by: Cannot read property ‘addEventListener’ of undefined


#2

I tried too, in order to change the design or add CSS of InAppBrowser using insertCSS method, but there is no success. Don’t know why this is not working.

I have also asked InAppBrowser - possible to Customize? insertCss not working on the forum for this. But no reply.

But after that as per my requirement I able to only change the Navigation bar/ tool bar by tweaking into plugin file i.e. InAppBrowser.java.
Follow below link, check may this help you.