Trying techs can used in UNP
- Extension can launch app. So we can launch app any time if we want.
- Extension can communicate with app by runtime.sendMessage .
- App can save message from extension to in specific text files successfully.
problems:
- How to insure app runs in single-instance model?
- Can extension install app automatically?
chrome.fileSystem
API can write files not by path, but by Entry
, which is a Object containing encrypted path information.
Entry
only can created by chrome.fileSystem.chooseEntry() method, which work only in a window created by app.
But app run in multi-instance model. If multiple instances running, send a message to app, it will create multiple windows with "Choose Path" button. That is not good.
Preliminary idea is launch app in callback of sendMessage method if app is not running, and then wait one or half second for app launching and send message again.