I want to be able to launch my packaged chrome app via javascript either on-page or through an extension. Am I able to do this? I have done a fair amount of research with no
You can make certain resources in your extension available, and then you should be able to "window.location" to that.
The URL scheme is chrome-extension://[PACKAGE ID]/[PATH]
.
Example:
//This is **not** in your packaged app, but in another web page
window.location = "chrome-extension://abdecbedphjijkaed/index.html";
In your packaged app, you'll need to declare which resources can be reached via a url in your manifest:
"web_accessible_resources": [
"images/my-awesome-image1.png",
"images/my-amazing-icon1.png",
"index.html"
]
See more: https://developer.chrome.com/extensions/manifest.html#web_accessible_resources
NOTE: This might not work. While the user can use "chrome://" urls, I'm not sure if web pages can