Activate chrome app from web page?

前端 未结 2 2031
既然无缘
既然无缘 2020-12-21 12:05

I am building a packaged chrome app (It is needed as I want to access chrome.socket). I have a website from which I would like to call my app (if installed or ask the user t

2条回答
  •  青春惊慌失措
    2020-12-21 12:37

    Apps can now (as of Chrome 31 I believe) register to handle urls by adding url_handlers in their manifest and detecting the url causing the app to launch in the chrome.app.runtime.onLaunched event. If the app doesn't launch, your hosted web site will be loaded an can present an inline installation with chrome.webstore.install.

提交回复
热议问题