Can a chrome application launch local program?

坚强是说给别人听的谎言 提交于 2019-12-17 21:19:15

问题


I now that chrome applications can deliver an experience close to that of native applications, but I could not find a way yet to run a local command from a chrome application. Is there any API for this that could used after the user has given permission? How can this be done?

Thanks


回答1:


It is in principle possible via Native Messaging.

You can have a native app specifically designed to talk to your Chrome app, but the downside is that the native component cannot be bundled with the app in the Web Store. You'll have to use a separate installer.

Note that the above documentation is for extensions, but the corresponding calls are mentioned in the apps documentation as well.



来源:https://stackoverflow.com/questions/21661827/can-a-chrome-application-launch-local-program

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