I'm working on a Safari Web Extension. I can send a message from the background page to the app extension using browser.runtime.sendNativeMessage, however I'm not able to receive any response.
Similarly, when I run the sample code for Messaging a web extension's native app, this code is executed:
There should be a log on the background page saying "Received sendNativeMessage response:". However it looks like the response handler never runs. Am I missing something ?
Similarly, when I run the sample code for Messaging a web extension's native app, this code is executed:
Code Block swift browser.runtime.sendNativeMessage("application.id", {message: "Hello from background page"}, function(response) { console.log("Received sendNativeMessage response:"); console.log(response); });
There should be a log on the background page saying "Received sendNativeMessage response:". However it looks like the response handler never runs. Am I missing something ?