youperiod.app icon indicating copy to clipboard operation
youperiod.app copied to clipboard

Need a service worker

Open getify opened this issue 2 years ago • 5 comments

Basic caching service worker needed, to make this an installable PWA. Probably should use a basic versioning system in it as well.

getify avatar Jul 04 '22 03:07 getify

I am taking this up

abskrj avatar Jul 04 '22 13:07 abskrj

I am taking this up

hey can i also join ??

Rajdeep-Das avatar Jul 04 '22 15:07 Rajdeep-Das

Just for clarity... this isn't really needed too early on. In fact, SW's kind of make rapid development more annoying. If we build it soon, we need a flag in the code to disable it for awhile, and only re-enable it towards the later stages of getting ready to publish the polished 1.0 of the app (and package for app stores, etc).

Don't mean to discourage doing this work, it's relevant work for sure. Just keep in mind that we might not need/want to incorporate it for a month or two while we build out the rest of the app.

getify avatar Jul 09 '22 15:07 getify

I had a little look at this and yeah, having the files cache themselves is kind of annoying for development.

I think I can easily make some changes to avoid this (as you said, creating a flag or maybe even something to acknowledge development mode) but I don't want to step on any toes as I believe @abhishekraj272 and @Rajdeep-Das are working on this. I'm curious to have a little look at this as I don't have much experience with service workers so please let me know if you (@abhishekraj272 and @Rajdeep-Das) would like any assistance.

rayblair06 avatar Jul 17 '22 18:07 rayblair06

@rayblair06 the worker is almost complete, and it works on flags, when you enable the flags, it caches that specific thing. But as @getify told, so I had halt the development, if that's okay, I will complete it next weekend and send the PR.

abskrj avatar Jul 17 '22 19:07 abskrj