Nick,
In my experience, the promise of service workers and the reality are very
different. I spent a few days trying to figure out how to use a service
worker to do anything useful for tiddlywiki and was unable to come up with
anything.
They can not serve the page itself, and because tiddlywiki is a singe page
application it can't load itself using the service worker.
I wanted to make a worker that could let you download a wiki locally and
then when a remote server was available it would sync with the server, but
service workers are only available on https domains and loading a file
locally isn't https. I spent way too long trying to find a way around that
and only succeeded in finding a very deep hatred for the design principles
used for what passes for online security and giving privileged access to
remote servers while removing it for local sources.
I wasn't able to find any way to handle this situation in iOS without an
app, and I got distracted by other work before finishing the app. Maybe
someone else made a solution but I haven't heard of any.
On Saturday, December 5, 2020 at 1:52:03 PM UTC+1 Nick wrote:
> Correction: To read offline, not online
>
> On Saturday, 5 December 2020 at 12:44:20 UTC Nick wrote:
>
>> I now have my tiddlywiki working as a online PWA saved to my IOS
>> homescreen.
>>
>> I wanted to be able to open this and read online, I thought a service
>> worker would be the way, is this right?
>>
>> I found this article:
>> https://css-tricks.com/serviceworker-for-offline/
>>
>> However I cannot figure out how to add it to TW
>>
>> Any ideas, or how to achieve this without a SW?
>>
>> Cheers
>>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/a10bbf25-26af-4278-be66-e1b08dbc48e7n%40googlegroups.com.