Skip to content

Conversation

@Tyschenko
Copy link

@Tyschenko Tyschenko commented Jun 17, 2025

We have a problem with opening some websites which rely on Service Workers and don't handle their unavailable state. For example, https://www.niftyisland.com is crashing on iOS:

Screenshot

image (1)

Service Workers are not supported on iOS in WkWebView:
https://developer.apple.com/forums/thread/773539
https://stackoverflow.com/questions/63674612/wkwebview-service-workers

To prevent such crashes we can inject Javascript code to mock Service Workers if they're not supported. This mock won't do anything except preventing the problem.

Screenshot of working website

Simulator Screenshot - iPhone 16 Plus - 2025-06-11 at 16 16 12

…w. Remove Service workers from all websites on iOS in the WkWebView to prevent the crash
@smilingkylan smilingkylan merged commit e4d36c4 into main Aug 4, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants