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

iOS Infinite Loading

Open KingRial opened this issue 5 years ago • 7 comments

Is there any working example to handle the Infinite Loading on iOS ?

I am trying to follow the proposed solution but without success.

KingRial avatar Mar 21 '19 08:03 KingRial

Hi. I may publish one soon. I'll let you know

NekR avatar May 03 '19 13:05 NekR

@KingRial Have you found a solution?

danielbayerlein avatar Aug 01 '19 11:08 danielbayerlein

@danielbayerlein Unluckily, up to now on iOS 12+ I just admitted defeat when using PWA technology. Too many problems with the caches and the lifecycle; no way to debug the PWA when it's used as standalone; odd behaviours; and so on...

I hope iOS 13 will change the situation.

KingRial avatar Aug 02 '19 17:08 KingRial

@kingrial I'm sorry for our loss, this is kind of tragic

lastmjs avatar Aug 02 '19 18:08 lastmjs

@KingRial Looks like the problem has been fixed with iOS 13.

danielbayerlein avatar Aug 04 '19 07:08 danielbayerlein

I still have issues with SW-powered websites not loading on iOS 13. I experience it daily on mobile.twitter.com and dev.to, for example. So, while it feels like iOS 13 brought some improvements, it has not fixed the infinite loading problem.

danburzo avatar Oct 22 '19 14:10 danburzo

@danburzo I can confirm that iOS 13 has improved the situation but hasn't solved the main problem. From the little I understood, I get the "inifinite loading" whenever I update my PWA and it exceeds the cache limit on iOS (which is 50Mb).

Usually it happens because each "service worker" has it's own life and it's own size.

For example, if you have a PWA of around 22Mb, and you install it and then update it for the first time, the problem doesn't occur (44Mb are lesser that the 50Mb limit)

But if you update the PWA a second time it seems you exceeds the cache limit because the first unused service worker wasn't cleaned by the OS (66Mb are bigger than 50Mb); in this case the OS kills the service worker's caches in a odd way and 90% of times nothing works until you clean the temporary files in the safari browser...

KingRial avatar Oct 22 '19 14:10 KingRial