Posts

Post not yet marked as solved
3 Replies
1.2k Views
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 - https://developer.apple.com/documentation/safariservices/safari_web_extensions/messaging_a_web_extension_s_native_app, this code is executed: 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 ?
Posted
by nosiar.
Last updated
.