next-pwa icon indicating copy to clipboard operation
next-pwa copied to clipboard

PWA in iOS is ignoring custom worker

Open GuiPretto opened this issue 2 years ago • 1 comments

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.1
  • next: 13.0.3
  • Safari: 16.4.1

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;

GuiPretto avatar Apr 20 '23 19:04 GuiPretto

@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.

ImBIOS avatar May 02 '23 03:05 ImBIOS