Posts

Post not yet marked as solved
1 Replies
I need to forward messages from the Safari Web Extension to another app through the App Extension Your topology (or wording) is a little confused. Are you using a Safari Web Extension or Safari App Extension? They are distinct and have very different architecture. I have a feeling you're referring to a Safari App Extension's SafariExtensionHandler as the "App Extension" and the popover as the "Web Extension". If not, please clarify this. I understand from the docs on Apple, App Extensions are not meant to be used as a long running background task Where does it state this? A Safari App Extension supplies a process that runs in the background. If you open Terminal.app and run ps aux | grep "[ ]Extension" you'll see a list of all the extensions you have running. Ergo an App Extension is capable of receiving messages from the scripts it injects for the entire lifetime of the process. There's no need to "ping" it to "keep it alive".
Post not yet marked as solved
4 Replies
Thanks for the reply. I have filed FB7560553.
Post not yet marked as solved
4 Replies
Nevermind, an API method does exist:SFSafariExtensionHandling.additionalRequestHeader(for:completionHandler:)