Conversation
|
Closes #100 |
|
I forgot to mention that this is part of a greater goal that is to support external NFC tags. So the protocol probably should use |
|
Hi, neat idea! I think the best place for the nfc tag emulation feature is a button on the receive sheet that would display a NFC dialog with a timeout and a cancel button. The content of the tag should be a Kaspa URI like "kaspa:qp0qnczz5jc8vpujuyqrjw5eey73paqfgxks7505pqdz9eqwmwftxg44gu00z?amount=10.123&label=Label&message=Message¬e=Note", such URIs are already supported in Kaspium. The NFC tag emulation feature should create a URI type tag instead of plain text (this requires some changes to flutter_nfc_hce). Note that Kaspium can already handle NFC tags that encode Kaspa URIs like the one above. Simply scan the NFC tag with the device (both Android and iOS) and the system will prompt to open the URI in Kaspium which triggers the send flow after authentication. The tag needs to be of URI type and have a URI that starts with one of the Kaspa address prefixes ("kaspa:" "kaspatest:" etc). Works with a simple address or with address, amount and additional data. |
|
Thanks for the information,
100%, as iOS recommend! But I'm not familiar with the codebase and I cannot see any design system documentation so I concluded it would be better if maintainers handle the UI parts. Yes for the URI. What are the purposes of the other fields, is it just something specific to Kaspium?
Where is this defined? I cannot make it work on my end |
|
Are you planning to upgrade the dependencies by any chance? There is a huge work to be done toward that area, as upgrading the flutter engine break the current compatibility, which then forces to upgrade the packages, which introduce breaking changes (some are horrible to handle, given how deeply they are propagated across the codebase) |
It is similar to Bitcoin URIs BIP21 https://en.bitcoin.it/wiki/BIP_0021
Try writing a NFC Tag with NFC Tools https://play.google.com/store/apps/details?id=com.wakdev.wdnfc Scan the tag with your device, it should offer to open the URI in Kaspium.
Yes, I'm using the latest Flutter version in my local branch. Let me see if I can push the changes. |
Hi,
This is a working PoC for NFC payment, tested on 2 android devices, demo here.
It still needs some competent Flutter developer to take it!
What's missing:
Additionally:
nfc_manageris at an outdated version, i wanted to take the latest (4.0.2 i believe), but it needs flutter engine upgrade, which then needs many deps to upgrade too