flutter_nfc_kit icon indicating copy to clipboard operation
flutter_nfc_kit copied to clipboard

Desktop Support

Open marwenbk opened this issue 1 year ago • 4 comments

Can you add support for windows ?

marwenbk avatar Nov 27 '23 16:11 marwenbk

Thanks for your feature request. Windows has PC/SC APIs to read smartcards, and pcsc-lite provides similar APIs on many more UNIX-like systems. So it is possible to add support on desktop platforms, but we have no guarantee on it since all maintainers are quite busy.

Harry-Chen avatar Nov 28 '23 03:11 Harry-Chen

@Harry-Chen thank you for your response. I will try to test it on as many platforms as i can. i would love to contribute to the creation but I need some guidance on how to get started hence I don't have background experience in low-level coding.

marwenbk avatar Nov 28 '23 09:11 marwenbk

I have done some very initial work on the desktop branch. The core idea is that all platforms forward the call from MethodChannel (from Flutter) to a unified interface implemented by the pcsc-interface module, which then uses either pcsc-lite on Linux / macOS or native PCSC APIs on Windows.

Ideally the code in pcsc-interface should compile on all platforms, except for some compiler guards to handle some subtle differences.

Harry-Chen avatar Dec 06 '23 09:12 Harry-Chen

Hi @marwenbk , I just found a library here: https://github.com/jjanku/dart_pcsc . That may help.

dangfan avatar Jan 16 '24 05:01 dangfan

Hi @marwenbk, if you're looking for an implementation of CCID protocol on both mobile platforms and desktop platforms, try https://github.com/nfcim/ccid For now, we don't see a proper way to support desktop platforms as a smart card reading library.

dangfan avatar May 31 '24 15:05 dangfan