Here is a little sample to how make a useful PWA layout using flexbox.
You can toggle to footer and see that the body is resized as it sould.
Feel free to copy / adapt this demo for you PWA app.
A very simple Flex demo for PWA (Progressive Web App)