next-pwa
next-pwa copied to clipboard
PWA in iOS is ignoring custom worker
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
next-pwa: 5.3.1next: 13.0.3Safari: 16.4.1
How To Reproduce
Steps to reproduce the behavior:
- Create a new project with the dependencies above;
- Add a custom worker.js file, with a new push event function logging something;
- Install the PWA (add to home) on a iPhone with the specified Safari version;
- Push any notification using a spring server (or other one);
- Don't log anything, or even show the notification;
@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.