Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Phonegap/Cordova issue with window resize
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?
I guess your issue stems from the fact that on Android every configuration change (rotation for example) destroys and recreates the Activity. Thus the whole webview is reloaded, including all scripts and the iframe content.
With Phonegap / Cordova apps it's best practice to handle configuration changes yourself, so add
to your Android manifest. That should prevent your app from being initialized over and over again.
There are plugins available to get an event on a change, in case you want to adapt something to the new window size / orientation.