I have been struggling getting an iOS PWA app using Angular 10 with service worker out of the box working correctly.
After a while there seems to be two things happening which I cannot trace back to a cause.
storage sets are blocking or not completing - concurrency happening? I am doing storage.ready check. I could think of a concurrency happening because of some/many sequential read/writes, but then again, if I add delays, it is still block (yes I know - setTimeout are sign of async misunderstanding on my end)
I am getting firebase network errors (‘channel’ of xhr requests to firestore.googleapis.com), which seemingly also creates blocking calls (e.g. batch.commit). I was considering bypassing angular service worker for calls to firebase API endpoints, but using dataGroups I may do things incorrectly.
On Android and Browser things look nicely (Win10).
Anyone experienced same debugging hell and know what is the catch I am missing here?
FYI, the app is supposed to be an offline first app which does some syncing at login/logout stage. For a number of collections stores to localstorage (Ionic Storage - driver: ‘indexeddb’) and posting/getting data from Firebase.