0

Given the allowed bidirectional communication between the JS component and the local (Mac) app, how can I open the local application using a message from the web component?

I am able to send messages between the components but the current safari web extensions context does not allow the usage of UIApplication.sharedApplication.openURL (as in, UIApplication is not really loaded).

0xFED5550
  • 586
  • 6
  • 9

1 Answers1

0

Since UIApplication cannot be used in this context, NSWorkspace.shared.open(<App url>) did the trick.

0xFED5550
  • 586
  • 6
  • 9