Safari web extension service worker not working after a minute

We are testing our safari web extension (https://apps.apple.com/us/app/whatfix-for-jnj-centris/id6723895659) on an iPad 7th Gen (iPadOS v - 17.4.1)

I am sharing a video link where you can see the widget (named Self Help) appears on the application. However after a couple of refreshes, it vanishes. This widget is powered by the extension.

We tried connecting the iPad to Mac and opened the webinspector. The extension content script sends a message to the service worker and it is expected to send back a response which it is not doing

We believe it is related to an issue that has been highlighted multiple times in the developer forum - https://developer.apple.com/forums/thread/758346

We have tried using several workaorunds as suggested by peer developers in the thread but we are unable to revive the service worker once it is killed.

We would like to understand from you, how to recover from this issue. Is there any workaround that we can apply to make sure that extension works fine?

It would be immensely helpful if we can get on a call to explain the issue further

Video Link: https://www.icloud.com/iclouddrive/0a7NR7BzDQHHU8zCHERuySBMw#RPReplay%5FFinal1740034010

Hello!

iOS 18 and later included fixes to improve the reliability of background scripts. I suggest installing the latest updates and seeing if they resolve your issue.

If you still continue to experience issues after updating, please file feedback at http://feedbackassistant.apple.com/. When you file feedback, please include a sysdiagnose, video, and sample extension if possible.

Safari web extension service worker not working after a minute
 
 
Q