GoogleChromeLabs / chromeos_smart_card_connector

Smart Card Connector App for Chrome OS
https://chrome.google.com/webstore/detail/smart-card-connector/khpfeaanjngmcnplbdlpegiifgpfgdco
Apache License 2.0
133 stars 50 forks source link

Document Connector App API #8

Open emaxx-google opened 8 years ago

emaxx-google commented 8 years ago

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.

fcorneli commented 5 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...

emaxx-google commented 1 month ago

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/