Open emaxx-google opened 8 years ago
We are simply trying to detect whether the Google Smart Card Connector has been installed or not. What we have for the moment:
chrome.runtime.sendMessage("khpfeaanjngmcnplbdlpegiifgpfgdco",
{
"type": "ping",
"data": {}
},
function (response) {
console.log(response);
});
which makes the Smart Card Connector to pop-up, but always gives me undefined
as console result. A basic documentation at the message-level of the API would be useful I guess...
This is still missing. For what it's worth, this low-level message-based API will be superseded by the Web Smart Card API if it gets implemented in Chrome: https://wicg.github.io/web-smart-card/
Currently, the API exposed by the Connector App is described in the root README file only briefly.
We should find a way to document it properly (including the details of how structured data and raw data are serialized). Probably, JSON Schema should be used.