iOS 18.4 is crashing the apps using service workers

After updating to iOS 18.4, our web application (with service workers) crashes on devices that accessed it prior to the update. This issue also affects hybrid mobile apps using the same web application; reinstalling the app resolves it by refetching and reinstalling service workers. Debugging is challenging because clearing the cache or reinstalling the app fixes the problem, and no useful error logs are available. Has anyone encountered similar crashes related to service workers after an iOS update and have any insights into the cause?

Please use Feedback Assistant to file an issue for this crash after reproducing it.

iOS 18.4 is crashing the apps using service workers
 
 
Q