-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P2P support #529
Comments
My friend @justinribeiro has a nice example of how to emulate NDEF tags https://github.com/justinribeiro/android-hostcardemulation-sample |
HCE is not an NFC Forum thing but can be used for NDEF card emulation: https://nfc-forum.org/nfc-forum-statement-regarding-host-card-emulation-hce/ It now also makes more sense that the name is so bad (card vs tag in NFC terminology) |
Android supports HCE
|
I am trying to understand https://developer.apple.com/documentation/corenfc/nfciso7816tag I guess that is how it can read HCE emulated tags, but it this just the same as reading NFC Forum Type 4 tags or can it read additional tags? |
There is a bunch of mobile payment systems out there including AliPay which do not build on low level card protocols like EMV (which is security-wise unsuited for the Web). The systems mentioned are currently stuck with QR both at the Desktop/Web and at the POS terminal. HCE=EMV. Apple Pay which implements EMV, does not use it over the Web. |
I haven't yet tried to write an example with that on iOS, but based on my reading of the docs it reads to me like that would be specific to Type4. I'm on the road for the next couple of weeks, but I'll have to test that theory when I get back to office. |
@justinribeiro what is the license of your sample ndef emulation code? Maybe we could base our on that if you are willing to relicense to the Chromium Project |
We can relicense that sample to the Chromium Project, I'm cool with that @kenchris. |
Hi, I'm eagerly awaiting some kind of P2P NFC support to land in Chromium so I can use it in a PWA bitcoin wallet app I've made. I made a short video demoing the non-P2P web NFC functionality a few months ago. Is #567 looking like the best hope at this point? |
Hope this actually happens! A nice use-case for peer-to-peer support could be transferring one-time pads between phones for encryption/decryption of messages sent/received on different messaging services. |
This is what TNEP is for: #563 |
Android is deprecating SNEP and thus the current peer to peer support
Answer from Android:
The current P2P support is a one time operation - when read, its done, where as HCE (Host Card Emulation) most probably isn't.
It might be possible to implement the existing peer support using HCE, but actually being able to not cancel on read might also be useful and affect API design.
Thus maybe it makes more sense to add a NDEFTagEmulation object or similar, as a specialization of HCE
The text was updated successfully, but these errors were encountered: