Post

Replies

Boosts

Views

Activity

Reply to Safari Web Extension sendNativeMessage and browser.runtime.connectNative don't work
When you create a Safari web extension in xcode, you're provided with a SafariWebExtensionHandler file. Which has a beginRequest method. When you call browser.runtime.sendNativeMessage from your background script, it calls that function in your swift code. In order to have access to the sendNativeMessage method in your background script you must add the nativeMessaging permission to the permissions array in your manifest.json.
Jul ’21