Reputation: 541
I am wondering whether there is any JS API to start another chrome app on button click event in a chrome packaged app.
Upvotes: 0
Views: 107
Reputation: 77561
As a general rule, no, you can't invoke another app.
However, if you control both apps, you can set the second app to expect an external message.
You can add chrome.runtime.onMessageExternal
listener to the second app's event page script, and send a message with the app ID from the first to wake the second app and launch the app window. See this for more details.
In general, an extension can do this task and more thanks to the management
API. It is, however, unavailable for Apps as of now.
Feature request to add this API for apps: #455550
Upvotes: 2