[w3c/ServiceWorker] user initiated 'uninstall' event (#998)

I'm looking for clarification of how a user might 'uninstall' a Progressive Web App that has been installed on their home screen.

Use case :

1. A user has added a PWA to their home screen.
2. They want to regain storage space for some photos or whatever they want to take.
3. They decide they can do without this PWA and it's associated storage.
4. They're used to being able to uninstall apps so they try to 'uninstall' the PWA.

At this point, iinm, all they have is 'remove' to remove the icon from the homescreen. I imagine the user might assume this would also remove the service worker and the associated caches, but I think this is not the case, and so there is little benefit to the user (short of making space on the home screen).

IINM, the only method of removing a service worker is via the chrome://serviceworker-internals page which is clearly not end-user friendly.

It strikes me that it might be possible for the 'remove' action to cause an 'uninstall' event to be fired in the corresponding service worker, and then it is up to the service worker to remove the caches and/or unregister itself, presumably causing it to be removed completely from chrome (akin to the chrome://serviceworker-internals 'unregister' button). This leaves the possibility for the sw to *not* uninstall itself/etc, which might possibly be desirable - or at least prompt the user before doing so (via the app) - and also sending a message to a server to record that the user has decided to uninstall (useful for the app's authors to know).
On the other hand, all that sounds like it is riddled with problems (not least privacy), so perhaps it should be possible for the user to do a 'hard uninstall' where the service worker and caches are just removed without any events/etc....or a combination.

Is this 'death' part of the PWA life cycle being discussed anywhere? ..or is it all [here](https://bugs.chromium.org/p/chromium/issues/list?can=2&q=component:Mobile%3EWebAPKs%20&sort=-modified&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified), which I've yet to dig through.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/998

Received on Wednesday, 26 October 2016 12:07:49 UTC