franckbour / Plugin.NFC

A Cross-Platform NFC (Near Field Communication) plugin to easily read and write NFC tags in your application.
MIT License
227 stars 67 forks source link

Xamarin forms NFC.Plugin problem reading tag #100

Open IvesBertoli opened 2 years ago

IvesBertoli commented 2 years ago

Description

I developing app using Xamarin Forms and need read NFC card to identify peoples and machines. So, starting ready the app not return data, return empty data and flag IsSupported is false.

Steps to Reproduce

  1. Start read tag
  2. Return message empty (print)

Expected Behavior

Return data writed

Reproduction Link

OBS: Your sample in Git are error too

OBS2: The smartphone working fine becouse was tested read with another app and work!

saamerm commented 2 years ago

@IvesBertoli what is OBS and OBS2?

IvesBertoli commented 2 years ago

Extra Information (Observation)

saamerm commented 2 years ago

@IvesBertoli what kind of tag are you using and did you see the application output? "IsSupported" is false, so place some breakpoints and share the steps to see why it is false

IvesBertoli commented 2 years ago

this screenshot is result of another android app (https://play.google.com/store/apps/details?id=com.ssaurel.nfcreader).

WhatsApp Image 2022-03-24 at 16 28 20

IvesBertoli commented 2 years ago

@saamerm, can you help?

saamerm commented 2 years ago

@IvesBertoli I dont have the nfc tags that you are using unfortunately so I can't tell why you are facing this issue since our tags works fine for us.

As I asked before, when you were debugging: did you see the application output? "IsSupported" is false, so place some breakpoints and could share what is the reason that it is returning false?

dev-vinicius commented 2 years ago

I was having the same issue, after format the tag with NDEF format with another app (https://play.google.com/store/apps/details?id=com.manjul.utility.nfc.writer&hl=pt_BR&gl=US) it starts working. Is there a way to add a method for this ?

Example method in Android: https://developer.android.com/reference/android/nfc/tech/NdefFormatable?authuser=2

saamerm commented 2 years ago

@dev-vinicius I dont have NFC tags of that type in order to test it, did you want to submit a PR with that functionality?

dev-vinicius commented 2 years ago

https://github.com/franckbour/Plugin.NFC/pull/102 - Its working with Mifare Classic