Friday, February 22nd, 2008
Gears gives you all of the components that you need to take your application offline. If you have the type of application that for now wants to just take some of its content offline, that should be trivial to do right?
How you use it?
Point to a Gears manifest file (a special file that lists all the pages to take offline) with a simple HTML attribute:
- <html gears-manifest="manifest.js">
Create a desktop shortcut icon that points right to your app and
use a custom image:
- </html><html shortcut="true" gears-manifest="manifest.js">
- <link rel="shortcut.icon" title="32x32" href="icon32x32.png"></link>
NOTE: This shows the Desktop Shortcut API that you can use in any offline application.
You don’t even have to write the manifest file yourself! PubTools includes a simple bookmarklet that developers can drag to their browser’s toolbar. Just navigate to the web pages you want offline, press the “Generate Manifest” bookmarklet, and a dialog will appear with the full manifest file generated for you ready to cut and paste into a file.
The core Google Gears gives us the building blocks that we can then build on top of to give users really easy tools and APIs. It has been great to see Brad join the Gears team and see him work on some of these issues. I expect to see much more from him in the future. What would you like to see?
Disclaimer: Remember, Brad and I work for Google
Posted by Dion Almaer at 11:56 am