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
784
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
699
May ’21
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 ?
Replies
1
Boosts
0
Views
784
Activity
Aug ’21
How to run UI from an App extension built with Safari Web Extension
I am trying to run a Main.xib file when an App extension starts from the Web Extension, but I am unable to see any output. I added the Main.xib to the App Extension's info.plist I assume when Safari runs and the app extension is called then the UI should pop up but I see no output.
Replies
1
Boosts
0
Views
556
Activity
May ’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
Replies
2
Boosts
0
Views
699
Activity
May ’21