cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Clelland <>
Subject Re: Cordova Service Worker plugin
Date Mon, 27 Apr 2015 14:28:55 GMT
For the most part, this allows developers who are already using Service
Worker to create offline-enabled web apps to use the same code, and the
same coding style, with Cordova apps.

Service Worker is currently available only in Chrome (and Opera, by its
Blink heritage), but as a W3C effort, I'm hoping that it will gain momentum
on the web as a far better method of handling the offline state than, say,
AppCache. I'd love to see developers start to think of this as the right
way to handle offline apps, and it's only a short step from there to using
the same techniques for hybrid apps.

(And hopefully, as support grows within the various platform webviews, a
plugin like this can shrink until eventually Cordova apps can just *use*
the native implementation)

On Mon, Apr 27, 2015 at 10:17 AM, Raymond Camden <>

> Can you comment as to why you would use this as opposed to the network API?
> On Mon, Apr 27, 2015 at 7:20 AM, Ian Clelland <>
> wrote:
> > It's a bit late for an announcement, since we actually published this a
> > couple of weeks ago, but Google's Cordova team has built a Service Worker
> > plugin for iOS Cordova apps.
> >
> > It's npm-published exclusively, so you can finally install this without
> > cloning the repo, so maybe that makes this a good time to publicize it ;)
> >
> > This means that you can use all of the Service Worker APIs (Cache, Fetch,
> > etc) that you would use to make an offline web app -- including updating
> > your app assets from the network -- and build a Cordova app the same way.
> >
> > The plugin is an extendable platform, as well, so we hope to publish some
> > other APIs on top of it (geofencing, push, background sync) fairly soon.
> >
> >
> --
> ===========================================================================
> Raymond Camden, Developer Advocate for MobileFirst at IBM
> Email :
> Blog :
> Twitter: raymondcamden
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message