Add background.js to Safari App Extension

I develop a tab manager extension: https://apps.apple.com/ua/app/tab-finder-for-safari/id6741719894

It's written purely in Swift. All Safari interactions are done solely inside a SFSafariExtensionHandler .

But now i'm considering adding some features from Google Chrome's Extension API like window switching.

Is it possible to add a background.js worker to my existing Safari App Extension to have access to the beginRequest method override inside SFSafariExtensionHandler?

Without converting my extension from Safari App Extension to Safari Web Extenion?

In order to use a background script/service worker or other web extension APIs, you'll need to convert your Safari App Extension to a Safari App Extension. You can read this article which covers the high level changes and how to associate your new Safari Web Extension with the Safari App Extension so that your users are have a smooth transition.

Add background.js to Safari App Extension
 
 
Q