I have an NFC card from my city public transport, and I want to integrate in my Flutter app a feature that clones the data from the card and use the app instead of the card.
Here is a link to my open source app (it is still WIP). It is for the students in my faculty and I want to integrate this freature in this application.
I don't know how to get the data from the card in Flutter and send it when the phone is next to a NFC receiver (like those from buses).
By clone, I assume that you'd like to use your mobile device as the NFC card. What you can do here is copy the NFC tag's metadata using flutter_nfc_kit plugin then implement a NFC emulator using nfc_emulator to have your device act as a NFC tag. Note that NFC emulator only supports Android at present.
Related
I'm trying to configure NFC in flutter and find a Near by Device using it and while tapping the two devices the text Message should be shared from one device to Another
couldn't able to find any Perfect Example or a Tutorial regarding my requirement any docs or sample code will be really helpful
To share a text between two mobile devices use Flutter NFC, you can use the flutter_nfc_kit package, which provides a simple and easy-to-use API for working with NFC in Flutter.
**ExampleCode:
Add the flutter_nfc_kit package to your dependencies in your pubspec.yaml file.**
**Initialize the NFC module in your main function:
NFC.instance.start();
NFC.instance.share("Your message here");
**NFC.instance.onShareSuccess.listen((event) { print(event.shareData); });
NFC.instance.isAvailable**
I am trying to create an android HCE application to emulate an NFC tag.
By following https://developer.android.com/guide/topics/connectivity/nfc/hce, I successfully create an app to send and receive APDU command. However, it just worked when we use own reader app. When using other NFC reader app, I found that processCommandApdu(byte[] apdu, Bundle extras) didn't work, so we cannot emulate NFC tag.
So anyone can tell me how to create an HCE app that can be read by other NFC reader. Thanks
Hello everyone I am new to the community (Flutter community) and I want to build an app where basically my Windows app will interact with an NFC tag reader/writer that will get connected to my laptop via USB. So when the NFC reads a tag, the code must get transmitted to my app and vice-versa if I want to write something to a tag I have to be able to do it using the windows app and send the code to the NFC reader writer that will write that data to the tag.
My question is: does anyone implemented something like this or a plug-in or something that allows me to connect the NFC reader to the windows app?
Thank you in advance.
NFC related development SDK.
https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/_nfpdrivers/
Here is a project about NFC Class Extension that you can check out.
https://github.com/microsoft/NFC-Class-Extension-Driver
I want to develop an app that will take the credit card data from the external credit card reader and will use it to talk with the credit company,
but I can't find any info about connecting a credit card reader to a flutter app.
You can't access external devices using flutter but it can be done using native plugins and method channels. you need to search for how to do it in android or ios and then implement it in each platform's project and then connect it to your dart code using a method channel.
I am using flutter to build my application to read and write the NFC cards I am using the flutter plugin NFC reader to read the cards but I couldn't find any way to write the NFC cards.
You can't write NFC tags on ios where in android you can.
You might wanna use Platform channels.
Platform channels helps writing and communicating between platform-specific code and your Dart code
Here is a medium post regarding writing an NFC tag on android
Write it on android and connect it to dart using Platform channels