shadowwalker / next-pwa

Zero config PWA plugin for Next.js, with workbox 🧰
MIT License
3.71k stars 312 forks source link

PWA in iOS is ignoring custom worker #474

Open GuiPretto opened 1 year ago

GuiPretto commented 1 year ago

Summary

Basically, I'm installing the PWA and after subscribing myself, I send a notification from my Spring server to me. This behaviour works in Android, and in Mac, but not in iOS. Then I decided to log some text to see if the problem was in the custom worker, and it seems as it is the case. I got the log on every other device, but not on iOS. It even ignored breakpoints I put while debugging.

Versions

How To Reproduce

Steps to reproduce the behavior:

  1. Create a new project with the dependencies above;
  2. Add a custom worker.js file, with a new push event function logging something;
  3. Install the PWA (add to home) on a iPhone with the specified Safari version;
  4. Push any notification using a spring server (or other one);
  5. Don't log anything, or even show the notification;
ImBIOS commented 1 year ago

@GuiPretto @mjsisley It seems this repo is dead and the maintainer cannot be contacted for so long now. I've made an immediate response by resurrecting this repo ImBIOS/next-pwa.