My platform OS is win 7. I started to write extension and try to communicate with C++ app. Here is manifest of my app: (xxx is my extension id)
{
"name": "com.google.chrome.testc",
"path": "D:\\testC\\debug\\testC.exe",
"description": "My Application",
"type": "stdio",
"allowed_origins": [
"chrome-extension://xxx/"
]
}
And I also add registry key at: HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\NativeMessagingHosts: "com.google.chrome.testc: D:\testC\debug\manifest.json"
But when extension called "chrome.runtime.sendNativeMessage('com.google.chrome.testc', ...)", it always report "Specified native messaging host not found.".
What step I missed? or something wrong above? Thanks.