SER­VICE WORK­ERS

net magazine - - Q&AS -

Ser­vice work­ers in­stall them­selves. If you in­stall enough of them, could all these back­ground pro­cesses grind the browser to a halt? An­thony Lind­say, Dublin AG: There are cur­rently three back­ground tasks run via ser­vice work­ers: push no­ti­fi­ca­tions, back­ground syncs and pe­ri­odic syncs. And each re­quires ex­plicit user per­mis­sion be­fore it be­comes avail­able. Push no­ti­fi­ca­tion de­liv­ery is con­trolled by the server, so spam­ming our users does run the risk of ty­ing up their browser pro­cesses, run­ning down their battery and de­plet­ing their mo­bile data al­lo­ca­tions. Don’t do it. Back­ground sync at­tempts to do some­thing (eg send a mes­sage) once a net­work con­nec­tion is avail­able, so it should not be an is­sue. Also, pe­ri­odic sync is be­ing de­signed to avoid cre­at­ing is­sues for our users, en­abling us to set a min­i­mum du­ra­tion be­tween syn­chro­ni­sa­tion re­quests, limit its ef­fect on the battery and avoid us­ing cel­lu­lar data.

Newspapers in English

Newspapers from Australia

© PressReader. All rights reserved.