osx - Chrome Native Messaging API on Mac -


i walking through chrome native messaging api guide,

https://developer.chrome.com/extensions/nativemessaging

a sample host's manifest looks this,

{   "name": "com.my_company.my_application",   "description": "my application",   "path": "c:\\program files\\my application\\chrome_native_messaging_host.exe",   "type": "stdio",   "allowed_origins": [     "chrome-extension://knldjmfmopnpolahpmmgbagdohdnhkik/"   ] } 

where "path" refers app chrome extension communicate with. on windows, either python script or exe file work , executed. on mac os, can shell script or python script work. cannot .app executed.

what cannot working is,

"path": "/applications/skype.app" 

when "chrome.runtime.connectnative(hostname)" in extension, error info "native host has exited." help!

on windows, either python script or exe file work , executed. on mac os, can shell script or python script work. cannot .app executed.

the .app directory, not file. using example, actual executable skype @ /applications/skype.app/contents/macos/skype.

right-click .app in finder & select "show package contents" see inside.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -