Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Phonegap/Cordova issue with window resize

Eric Johansson
8 years ago Nov 03, 2014 7:37am

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.

Jürgen Wahlmann
7 years ago Jun 30, 2015 1:09pm