O'Reilly logo

HTML5 iPhone Web Application Development by Alvin Crespo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handling offline applications

At this point, we have learned how to cache our files on the client side using the application manifest interface to not only speed up our site, but also make it available to our users when they are offline. However, this technique doesn’t take into account what you should do to handle interactions by the user. In this case, we need to make sure our application has usable parts that can make the application seamless when they lose connection.

A simple use case

Before we proceed, let’s define a simple use case for why handling an offline application is useful to both the user and us. Let’s say we have a user named John, and John is commuting to work and is currently updating his profile in a web application on his iPhone. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required