Post

Replies

Boosts

Views

Activity

App Extension as a long running proxy for Safari Web Extension
I currently have an architecture where I need to forward messages from the Safari Web Extension to another app through the App Extension. I understand from the docs on Apple, App Extensions are not meant to be used as a long running background task, but if it is just proxying messages, is it advisable to keep pinging the app extension to keep it alive and use it as a long running task in the background for proxying messages ?
1
0
770
Aug ’21
Unable to load UI for Safari App Extension
I had created a Main.storyboard file and added a Window Controller Scene and View Controller Scene. I also created a ViewController.swift file and added it to the info.plist under NSExtension - NSExtensionPrincipalClass But when I launch the app extension by enabling the extension in the Safari Browser (host app), I don't see any UI popup for the app extension. Is there any step I am missing in this ? Also is there a main method for the App Extension or is it only the func beginRequest in the SafariWebExtensionHandler class? If i wanted another main like thread to instantiate objects for example., Where can I place them ? Thank you
2
0
683
May ’21
Connecting a sandboxed app extension to an XPC service outside of the sandbox
I have a Safari App extension that has to communicate with another app that is outside the sandbox. I wanted to place an XPC service in between the two. Would it be possible to talk to an XPC service outside the sandbox with the use of temporary entitlements ? or are apple events the only way to go? If XPC service is possible, would it have to be an XPC exposed through a daemon process or can it be bundled with the non sandboxed app ?
1
1
644
Apr ’21