如何将Google Chrome扩展程序的消息发送到桌面应用程序? [英] How can I send a message from Google Chrome extension to desktop application?
本文介绍了如何将Google Chrome扩展程序的消息发送到桌面应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Windows桌面应用程序,必须与我的Chrome扩展协同工作。
我可以通过Google Chrome扩展程序以某种方式向我的桌面应用发送消息吗?
哪些IPC对象可以使用?
解决方案
我看到三个选项:
- 您可以使用互联网。您可以使用Chrome扩展和桌面应用程序交谈的远程服务进行通信。
- 您可以让桌面应用程序内置一个简单的服务器,以便使用扩展程序可以向本地http请求与之通信。
- 使用Google NPAPI插件功能可以完全访问计算机。
I have a Windows desktop application which must work in collaboration with my Chrome extension.
Can I send a message to my desktop app somehow from Google Chrome extension?
Which IPC objects can I use?
解决方案
I see three options:
- You could use the internet. You can have a remote service that both the chrome extension and your desktop app talk to, to communicate.
- You could have your desktop app have a simple server built into it so that the chrome extension can make local http requests to it to communicate with it.
- Use the Google NPAPI plugin functionality to have full access to the computer.
这篇关于如何将Google Chrome扩展程序的消息发送到桌面应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文