Native Messaging

nativeMessaging
High RiskCategory: CommunicationView Official Docs

Install Warning

"Communicate with cooperating native applications."

Technical Context

Enables the extension to exchange messages with native applications installed on the user's computer. The native app must be specifically configured to communicate with the extension.

What This Means For You

The extension can talk to other programs installed on your computer, not just things in the browser. This is used by password managers and system utilities.

Related APIs

This permission enables access to these Chrome APIs:

chrome.runtime.connectNativechrome.runtime.sendNativeMessage

Common Use Cases

  • Password managers
  • System utilities
  • File handlers

How to Declare in manifest.json

Add the "nativeMessaging" permission to your extension manifest:

{
  "manifest_version": 3,
  "name": "My Extension",
  "permissions": [
    "nativeMessaging"
  ]
}

What Users Will See

When users install your extension, Chrome will display this warning:

This extension can:

"Communicate with cooperating native applications."

Related Permissions