Messaging a Web Extension’s Native App
Communicate between your Safari web extension and its containing app.
Overview
Configure the Sample Code Project
Before you run the sample code project in Xcode:
Open Safari and choose Develop > Allow Unsigned Extensions.
In the project settings in Xcode, select the Native Messaging Demo target.
Click the Signing & Capabilities tab.
For Signing Certificate, choose Sign to Run Locally. (Leave Team set to None.)
Repeat steps 3 and 4 for the Native Messaging Demo Extension target.