iOS 17.5.1 safari extension - background scripts not working properly

We had developed an iOS Safari web extension (which uses non-persistent background scripts) that functioned properly until iOS 17.3. However, I've encountered inconsistent behavior on iOS 17.4.1, 17.5, and 17.5.1. Upon further debugging, I noticed that the background scripts often become idle and are unloaded frequently. They are not loaded again even for the registered webNavigation events and only trigger when interacting with the extension popup menu. This is also mentioned here.

I had tried this in both manifest versions 2 & 3. I had tried using service_worker for background scripts. But, none of it seems to resolve this issue.

Could you please clarify if this is a bug or an intended behavior?

Our extension relies on webNavigation events without users having to interact with the popup menu often.

This issue should be resolved in the latest iOS 17.6 and iOS 18 betas. Please check these releases to see if your extension still runs into issues. If your extension still runs into issues, please file Feedback at http://feedbackassistant.apple.com/ with a sample project and sysdiagnose.

It looks like this issue is still not fixed, Do we have any update on this?

Following this for an update as well. Completely breaks our app

This has additional fixed in the 17.6.1 update.

@gayathri12

Has this problem been resolved? I am facing the same issue, so if you have solved it, please let me know what you did. I have reported in the post below that I am facing the same issue. https://forums.developer.apple.com/forums/thread/764594

iOS 17.5.1 safari extension - background scripts not working properly
 
 
Q