I have to following situation:
I have a already existing remote webpage and i want to develope an app which uses this page.
So far, so good. When I start the app the local index.html
is loaded and it redirects (window.open target: _self
) to the external website. This website is opened in the phonegap webview. On the external website I added the cordova.js
in order to get access to the native phonegap API. But it doesn't work correctly. The deviceReady event is triggered correctly, but I have no access to the phonegap API, for example navigator.camera.
How can I get it done, to get access to the API?
Please do not comment that it will be rejected by AppStore etc. etc.
Thank you for your help!
window.location="http://your.website";
and also<content src="http://your.website"" />
– MichaelS May 15 '14 at 19:12