Re: Geofencing alternative proposal

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:26:14 UTC