I'm trying to create a file handler on my app, I've not Chrome OS so the only way to try my code is to launch the app from command line with a file in parameter. My question is: how?
I've tried
chrome --appid=[TheIdOfMyApp] --[Path of the file to open]
but it just opens the app and the entry from my function is the same as when I open Mado with no parameters.
To check if I have an entry I do that :
chrome.app.runtime.onLaunched.addListener(function(items) {
console.log(items);
// The code to open the app's window...
});
It always returns me Object {isKioskSession: false}
.
[UPDATE]
My manifest looks like (these are just the file handlers and the permissions parts):
"file_handlers": {
"text": {
"types": ["text/md"],
"title": "MyApp"
}
},
"permissions": [
{"fileSystem": ["write", "retainEntries"]},
{"mediaGalleries": ["read", "allAutoDetected"]},
"storage",
"webview"
]
[END OF THE UPDATE]
Does anyone know how to check if an app's file handler is working on Windows? Is my code correct?
Thanks for your help.