EddyVerbruggen / cordova-plugin-webviewcolor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Colour doesn't persist when launching external pages

antscode opened this issue · comments

Thank you for this great plugin. It works great when I first call the change method in my deviceReady, however if I then use the InAppBrowser to go to another page (with target = _self, which should be the same webview), the color reverts to black.

I don't fully understand what's going on behind the scenes, so there might not be anything that can be done - but I just wanted to reach out to you to see if there could be a solution?

Many thanks,
Anthony.

Hi,

I've tried every trick, but wasn't able to change the color of the background of the InAppBrowser. It just overrides anything you set beforehand.

Thanks for testing & your quick reply. I was able to resolve the problem by including phonegap.js (cordova.js) and your plugin JS file within the hosted web app itself.

I could then set the webview background from within the InAppBrowser.

Cheers,
Anthony.

Haha, smartass :)
Like!

Haha I was surprised it worked actually, I was expecting some sort of cross-domain access denied. In fact, it seems that all of the PhoneGap functions can be accessed this way which is pretty cool.

Just need to get it approved by Apple, hmmm...