cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raymond Camden <raymondcam...@gmail.com>
Subject Re: Cordova Service Worker plugin
Date Mon, 27 Apr 2015 14:38:51 GMT
Interesting. I'd like to see more about this. Are you planning a blog
post? If not - I'd suggest it. :)

On Mon, Apr 27, 2015 at 9:28 AM, Ian Clelland <iclelland@chromium.org> wrote:
> 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 <raymondcamden@gmail.com>
> wrote:
>
>> 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 <iclelland@chromium.org>
>> 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.
>> >
>> > https://www.npmjs.com/package/cordova-plugin-service-worker
>>
>>
>>
>> --
>> ===========================================================================
>> Raymond Camden, Developer Advocate for MobileFirst at IBM
>>
>> Email : raymondcamden@gmail.com
>> Blog : www.raymondcamden.com
>> Twitter: raymondcamden
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
>> For additional commands, e-mail: dev-help@cordova.apache.org
>>
>>



-- 
===========================================================================
Raymond Camden, Developer Advocate for MobileFirst at IBM

Email : raymondcamden@gmail.com
Blog : www.raymondcamden.com
Twitter: raymondcamden

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message