Yes, I researched whole stackoverflow but could not find a (working) solution to my problem.
I made an application (game) using Cordova 3.5.0-0.2.1. I use several plugins which are loaded and fine when the first page (index.html) loads. onDeviceReady fires and everything is OK.
Sin embargo, cuando uso
window.location.href = "anotherpage.html"
all plugins become "indefinido". Por ejemplo:
- un mueble consola
- window.plugins.AdMob (which works perfectly and install ads, BTW, but is inaccessible later)
But the plugins used are not important - TODO LO QUE se convierte en indefinido when new page loads, meaning that plugins are lost.
So I can not use plugins in subsequent pages of the application. This happens on both Android and iOS on any tested device. Concerning message which can be viewed in XCode log output is "Resetting plugins due to page load". I searched all stackoverflow resources related to this message but found no relation to this problem (except one regarding IFRAME load which did not help either).
Can anyone help me to get my plugins work again when I load another html file inside Cordova application?
Gracias de antemano!
preguntado el 12 de junio de 14 a las 10:06
you have to inherit the cordova.js file in every html-document.