We have created a Vaadin 7 TouchKit 4 application that we want to package using Phonegap/Cordova to distribute as natively as possible. Now we have run into a problem where Vaadin’s offline view (“ The server cannot be reached”) is triggered every time the window resizes, which is when the keyboard is shown, device rotated etc. Do you guys have any input on this problem?
Technically, we have linked the vaadin-application to the client by using an iframe within the index.html that phonegap packages. The only things index.html does is to declare the iframe and set its src attribute, as well as import cordova.js. We have so far pin-pointed it to be some kind of problem between cordova.js and vaadin’s javascript, since the application is fine as long as index.html does not import cordova.js. Also, if we disable the resize events in the AndroidManifest.xml the app is working as intended. The same problem exists in our application as well as when we try to package the TouchKitSampler, so it shouldnt be related to our vaadin app specifically.