isoos / service_worker

Service Worker API for Dart
https://pub.dartlang.org/packages/service_worker
BSD 3-Clause "New" or "Revised" License
36 stars 19 forks source link

flutter_service_worker.js - does it work together #33

Open makinghappen opened 2 months ago

makinghappen commented 2 months ago

HI!

Does service_worker integrate with flutter_service_worker.js ? There cannot be two service workers, so to implement my own, I came across your package

isoos commented 2 months ago

I'm sorry, I have no idea if or how that would work. I have seen people merging two service workers previously, but not in the context of this package.

makinghappen commented 2 months ago

so what is the purpose of service_worker package? By default flutter generates flutter_service_worker.js, will service_worker interfere with it? @isoos

isoos commented 2 months ago

so what is the purpose of service_worker package?

This was developed for regular web applications, and Flutter was not a consideration, nor a target.

makinghappen commented 2 months ago

so it is for dart without flutter, right?

isoos commented 2 months ago

so it is for dart without flutter, right?

Yes.

makinghappen commented 2 months ago

flutter is mentioned on pub.dev, so I thought it was developed with flutter in mind :) image

isoos commented 2 months ago

It is not incompatible with Flutter SDK on the web platform, but that doesn't mean it was developed for it. Sorry.

makinghappen commented 2 months ago

I see, thank you for your prompt answer! This saved my time on trying