How can I run a Chrome Packaged app through javascript?

I want to be able to run my packaged chrome application through javascript either on the page or through the extension. Can I do it? I did a lot of unanswered research in any direction. Can someone at least point me in the right direction?

+2
source share
3 answers

chrome.management.launchApp can be used to run the application in the extension.

An API link is available here: https://developer.chrome.com/extensions/management.html#method-launchApp .

+5
source

, "window.location".

URL chrome-extension://[PACKAGE ID]/[PATH].

:

//This is **not** in your packaged app, but in another web page
window.location = "chrome-extension://abdecbedphjijkaed/index.html";

, URL- :

"web_accessible_resources": [
    "images/my-awesome-image1.png",
    "images/my-amazing-icon1.png",
    "index.html"
]

: https://developer.chrome.com/extensions/manifest.html#web_accessible_resources

. . URL- "chrome://", , -

+4

. . 111422: URL-.

+4

Source: https://habr.com/ru/post/1545813/


All Articles