Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for runtime.sendNativeMessage().
Developer library 6
Native manifests
essaging manifests The native messaging manifest is a file with a name that matches the string passed by the extension into runtime.connectNative() or runtime.sendNativeMessage() with the `.json` extension. It contains a JSON object with these properties: <table class="fullwidth-table standard-table"> <thead> <tr> <th scope="col">Name</th> <th scope="col">Type</th> <th scope="col">Descriptio
Native messaging
op.com/documentation/develop/debugging/#debugging-background-scripts) on Extension Workshop. #### Connectionless messaging With this pattern you call runtime.sendNativeMessage(), passing it: - the name of the application - the JSON message to send - optionally, a callback. A new instance of the app is created for each message. The app passes two arguments when starting: - the complete path to the app manifest -
Sidebars
indow) using runtime.getBackgroundPage(), and can interact with content scripts or native applications using messaging APIs like tabs.sendMessage() and runtime.sendNativeMessage(). Sidebar documents are unloaded when their browser window is closed or when the user closes the sidebar. This means that unlike background pages, sidebar documents don't stay loaded all the time, but unlike browser action popups, they stay
runtime
vent listeners within your extension or a different extension. Similar to runtime.connect but only sends a single message, with an optional response. - runtime.sendNativeMessage() - : Sends a message from an extension to a native application. - runtime.getPlatformInfo() - : Returns information about the current platform. - runtime.getBrowserInfo() - : Returns information about the browser in which this extensio
runtime.sendNativeMessage()
returns a [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise). The first message sent by the native application is treated as a response to the `sendNativeMessage()` call, and the promise will be fulfilled with this message as a parameter. Note that you can't use runtime.onMessage to get responses from the application: you must use the callback function instead. A new instance of the application is la
Work with files
emains running until the extension calls `Port.disconnect()` or the page that connected to it is closed. - Connectionless messaging - : Here you use `runtime.sendNativeMessage()` to send a JSON message to a new, temporary instance of the native application. The browser closes the native application after receiving any message back from the native application. To add the file or blob you want the native application