Re: Geofencing alternative proposal

Martin, I think it means that before functional events (e.g. fetch, push)
start firing, activate is fired once. Not once before each fetch event.
Does that sound right?

/m


On Tue, Sep 23, 2014 at 11:25 AM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 22 September 2014 03:22, John Mellor <johnme@google.com> wrote:
> > No, activation also only happens once (see SW lifecycle definition).
>
> This seems to suggest otherwise:
>
> """
> onactivate:
> After successful installation and just prior to receiving functional
> events (e.g., fetch), the activate event is dispatched.
> """
>
> I haven't had a lot of sleep, but this seems very clear to me.  Maybe
> there is some way to interpret this to mean that activate is not fired
> just prior to functional events, but I can't work it out.  The note
> would seem to reinforce my interpretation:
>
> """
> Note: Like install event, this event may extend its lifetime using
> event.waitUntil(), however developers should note that activation is
> particularly performance sensitive. Performance sensitive events may
> be queued and will be delayed until successful completion of
> onactivate.
> """
>
>

Received on Tuesday, 23 September 2014 10:31:34 UTC