service-worker


Running Service workers continuosly in background?


I have been learning about Service workers today only. I have a couple of questions
1) what are the limiation of using service workers other than the https? I read that the lifetime of the service worker is limited, is it possible for me to keep the service worker running in the background as long as the browser (not my page) is opened? if possible, what could be the issue?
2) When a event is running using service workers, by mistake i close the tab, when i open my page, is it possible for me to check what are the pending events that are running in my service worker? If possible could you give me a short example?
3) Is there a limitation on how many pages to be cached? What can be cached and what shouldn't?
Thanks,
Jollyguy
Currently there's no way to keep a service worker running indefinitely while your tab is closed. The BackgroundSync API might be what you're looking for.
It is definitely possible, you can make your page "chat" with its controlling service worker using the postMessage API. See the Message Relay recipe in the ServiceWorker Cookbook.
There isn't a limitation, other than the amount of available space. See the Storage Consideration paragraph of the Service Workers specification for more details.

Related Links

How to create Service Work to store dynamic content in Progressive WEB APP?
Offline page is not showing in fetch function when using service worker?
Running Service workers continuosly in background?
Service Worker, double caching?
ServiceWorkerRegistration.active not being set first time (Chrome)
Pre cache folder and subfolder content
Push web api, notificationclick, how to open desktop client instead opening a new browser client
keys property doesn't exist on my PushRegistration object
Web push notifications not showing since Chrome switched to OSX notifications
Can I have multiple service workers both intercept the same fetch request?
Ensure service worker is updated when hosted on a CDN?
When is my service worker updated?
difference between fetching page and file in serviceworker
How to allow serviceworkers for http in chrome
Read cookies from within a Service Worker?
How to handle URLs that aren't controlled by a service worker

Categories

HOME
android-studio-2.2
character-encoding
numbers
socket.io
interpolation
mapbox
iis-6
missing-data
webix
okhttp
siddhi
resultset
3nf
azure-powershell
imessage
google-container-registry
sigma.js
delphi-xe5
react-toolbox
angular-routing
ckfinder
fat
bulletphysics
motion-detection
shared
mat
genexus-sd
sinch
failover
gitlab-api
xbox
classcastexception
pop3
modalviewcontroller
imx6
sql-server-ce
git-rewrite-history
amazon-ses
ods
cin
p4merge
trigonometry
escpos
smoothstate.js
placeholder
optimizely
zenhub
spring-data-couchbase
excel-dna
dt
pdf-conversion
mach-o
flyout
pybrain
shinobi
chromium-os
simplepie
angular2-testing
custom-lists
actor-platform
preprocessor
vulcanize
iotivity
cortex-m
contentcontrol
atan2
custom-errors
terracotta
video-player
visual-sourcesafe-2005
telepat
umlgraph
java-security
primitive-types
iso-prolog
insight.database
angular-carousel
personalization
malformedurlexception
jquery-slider
git-repo
xmltodict
gwt-openlayers
eclipse-kepler
dtmf
mvc-editor-templates
nevron
video-codecs
cardreader
android-sdk-2.3
mapping-by-code
pylucene
updatesourcetrigger
object-database
openfaces
duplex
dsl-tools
escrow
linfu-dynamicproxy
int64
dsoframer
netbeans6.1
idatareader

Resources

Encrypt Message