ArchitectureΒΆ
The solution is based on a local service (the Smart Card Web Service, or SCWS), which is set up on the client phone when the client application is installed. The SCWS is able to communicate with tokens connected to the phone. In order to communicate with this service, a React-Native application can use the SCWS API React (SCWS API), which communicates with the SCWS.
The general architecture is depicted below:
When access to the smart card system is needed, the application can use the SCWS API provided by Idopte (with which the application is bundled). This API is a simple wrapper that takes care of the communication with the underlying Smart Card Web Service. The Smart Card Web Service, which is resident in the background of the app, performs the operations through native calls.