Angular PWA Not Working on iOS – Service Worker Errors

I have an Angular app that I’ve converted into a Progressive Web App (PWA) for mobile. It works perfectly fine on Android devices, but I’m encountering issues on iOS. Sometimes, the webpage doesn’t open, and the service worker console is full of errors like this: errors

Additionally, when the webpage doesn’t load, I see a blank screen with the following error:

error screen on mobile

I’ve been searching for information online, but I haven’t been able to find any solutions or similar cases. I’m not sure what might be causing these issues specifically on iOS.

Can anyone provide guidance on what could be causing these errors on iOS and how to resolve them? I’m open to suggestions and insights. Thank you in advance for your help!