Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 Offline app on Android devices

This is regarding HTML5 offline apps on Android devices.

We are running into an issue where bookmarking an offline capable HTML5 app (with a complete cache manifest file) fails to load on the Android browser under the following conditions:

  1. Bookmark the app on the browser
  2. Switch off all wireless connectivity
  3. Close the browser completely
  4. Attempt to launch the bookmark from the homescreen

We end up with an "Unable to connect to the internet" message. The app works perfectly fine on iOS devices when saved to homescreen and on airplane mode.

Is there a specific way the app should be saved, or is this an Android specific quirk?

like image 851
Luthfur Avatar asked Jan 30 '13 19:01

Luthfur


1 Answers

I'd check and see that:

  1. MIME type really is text/cache-manifest.
  2. Your cache-manifest starts with CACHE MANIFEST, your urls thereafter are either relative to the manifest or absolute URLs.
  3. You don't have any broken links in your manifest, or a forced NETWORK: tag.
like image 187
Ben Max Rubinstein Avatar answered Oct 07 '22 00:10

Ben Max Rubinstein