service_worker icon indicating copy to clipboard operation
service_worker copied to clipboard

Service Worker API for Dart

Results 11 service_worker issues
Sort by recently updated
recently updated
newest added

I am getting a `TypeError` exception when I use postMessage. Steps to reproduce the issue: 1. Import the `service_worker` repo in VS Code 2. Open the example project and modify...

To abort a fetch request you would set `RequestInit.signal` with an `AbortSignal` taken from an `AbortController`. See https://developers.google.com/web/updates/2017/09/abortable-fetch for examples. Currently the isomorphic fetch library does not support this. The...

I could not get the example to work - "MAIN: ServiceWorkers are not supported." My gut feeling is that this is broken upstream in the dart sdk, e.g: https://github.com/dart-lang/sdk/issues/34228 @isoos...

Hello, I am getting errors in the example. I just changed `import 'package:service_worker/service_worker.dart';` to `import 'package:service_worker/worker.dart';` And I am getting the following in the web console: ` MAIN: registereddart_sdk.js:18740 MAIN:...

The platform [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response) type has a default constructor. I am trying to write an interface that can cache to a `File` or browser cache and am a bit stuck without...

I'm getting this error using the default example sw.dart file. This did work but recently stopped, I think since I started using `--preview-dart-2`. This is the generated sw.dart.js: https://goo.gl/HgZWcK

Using 2.0.0-dev.30.0 w/ dart2js ``` > cd example > pub get > pub serve ``` ![screen shot 2018-02-23 at 12 47 44 pm](https://user-images.githubusercontent.com/17034/36616259-f944a1fe-1897-11e8-8f29-06b232517f83.png)

Hi István, I change code in worker.dart and the log seems show that: PushMessageData . _delegate is null can you help with this? Many Thanks. onFetch.listen((FetchEvent event) { if (worker.pushHandler...

Hi, I'm playing with your service_worker (Thanks for the lib) but unfortunately just importing `service_worker/window.dart` breaks my app. Very strange! I made a video to demonstrate the problem - see...