What is causing an “Error connecting to native app” when connecting to a native host application with connectNative() in a Chrome extension?

依然范特西╮ 提交于 2019-12-06 01:56:57

One of the possible causes for the "Error connecting to native app: [native messaging host id]" is the absence of the required nativeMessaging permission.

Declare the "nativeMessaging" permission in the manifest file, reload the extension and try again.

(the fact that chrome.runtime.connectNative and sendNativeMessage are available without this permission is a bug.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!