-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Is it possible to create a progressive web app (PWA) with zk ?
Kindly share tutorials if available.
PWA represents a new philosophy for building web apps. It's not created by a single technology. You can make your web apps more like PWA by matching a set of criteria. Please refer to https://developer.mozilla.org/en-US/docs/Web/Progressivewebapps/Introduction
The simplest thing is to provide a manifest.json. There is a tool to verify your web application for PWA: https://developers.google.com/web/tools/lighthouse/
To build a PWA, some criteria are not related to ZK e.g. serve with HTTPS. Some are related e.g. being responsive. So you can start from the simplest thing and then gradually turn your web apps more like a PWA.
But I think the hardest part is to make a zk-based application available offline. Because ZK components will communicate to a server by default when end-users interact with components. Below is an example, but you need to handle the offline process by yourself. And it only works for <fragment>. https://blog.zkoss.org/2017/07/06/zk-8-5-preview-the-offline-recovery-feature-of-fragment-component/
For other criteria, I think ZK doesn't prevent you from implementing them.
Asked: 2020-10-20 22:59:02 +0800
Seen: 27 times
Last updated: Sep 29 '22