Progressive Web Apps Part 4: Variable Connectivity
One reason to prefer building a native mobile App over a progressive web App has historically been that a mobile App can work (to some extent) without an Internet connection using cached data, whereas web sites only work whilst an Internet connection is present.
Service Workers allow progressive web apps to work with varying levels of connectivity. The level of poor connectivity that an individual App will tolerate depends entirely on the function of the App. For example, an App that requires up-to-the-second stock prices will be pretty useless without a reliable Internet connection, whereas a stock price trend-reporting tool might b e able to work with data that is hours old.
Service Workers allow your App to work with a poor or no Internet connection by caching the results of previous requests for data for a specific amount of time. The amount to caching time can vary for different types of data. This isn’t a panacea to cure all your connectivity problems. Specific programming will still be frequently required to deal with situations where out of data cannot be used. This may include issue warnings to the user, locking out specific functions until connectivity is restored and other novel solutions.
If you are interested in having McKenna Consultants develop your progressive web App, then please fill out the content form below.