a) You have cordova.js included in your assets. That's not correct and you should remove it
b) You are using a very old version of the plugin. Instead, reference the latest version from npm (cordova-plugin-inappbrowser)
Be aware that window.open() is replaced by another method, which is documented in the plugin's docs
c) You are not waiting for the deviceready event to fire before the window.open() can be called. In your case, it won't matter in most cases, because it's called upon a user's click. You should still correct that.
Perhaps I am pretty stupid now, but I think I have done those things you said now, but still the same problem..
The proper version is 1.4.0 at npm. And you are specifying the source as 'pgb'.
Also, you now have a cordova.js in /js (which you should remove)
You still have window.open() in your index.html. Be aware that the inappbrowser plugin requires an own open() method!
- Have you considered building with a more recent PGB version?
- You are using whitelist version 1.2.0; the latest is 1.2.2
- Where is app.initialize() defined? I seem unable to find the method.
I figured it all out thanks to you.. It is now working.. I have been bug testing with all versions, thats why it is not the latest. I was wondering if it was the versions that did not work with phonegap build.
Thanks once again..