Contents

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:

  1. Open Safari and choose Develop > Allow Unsigned Extensions.

  2. In the project settings in Xcode, select the Native Messaging Demo target.

  3. Click the Signing & Capabilities tab.

  4. For Signing Certificate, choose Sign to Run Locally. (Leave Team set to None.)

  5. Repeat steps 3 and 4 for the Native Messaging Demo Extension target.

See Also

Messaging