I like to use Cordova and InAppBrowser plugin with a remote webapp, on oppening my application load an external webapp like this <content src="http://mywebapp.domain.com" />
but with this method i dont have access to any plugins.
So i also tried with jquery :
config.xml
<content src="index.html" />
<access origin="*" />
index.html :
<div id="remoteframe"></div>
$('#remoteframe"').load('http://mywebapp.domain.com');
With this i have access to cordova and all the plugins but the rooting inside of http://mywebapp.domain.com dont work anymore (no css, no js, no route..) and the method look very "dirty".
Is there a proper way to do this ?
So I finally found, I had to include this on my remote page (http://mywebapp.domain.com) :
<script src="/js/cordova.js"></script>
<script src="/js/inappbrowser.js"></script>
And apparently cordova_plugins.js
must be in the /js/ folder to (same folder as cordova.js).
For multiplaforms you may need to change with the right cordova.js.