-
Notifications
You must be signed in to change notification settings - Fork 119
Unable to read any tag D/PersonaManager(): isNFCAllowed #14
Comments
I don't know anything about reading RFID tags using NFC on Android, except that it is possible. |
As far as I am concerned, they conform to the NDEF standard as I am able to scan them using NFC readers from the App store. The tags are attached to ink containers and contain data regarding the contents of the container like product type, ink color, production date, etc. Each of these fields is placed on a separate block of the memory content of the tag. The tech they use is NfcV. |
Hm, I'm not sure what is causing this. Could you try the following things
|
Alright, I did that but there isn't any change to what is happening or to the logs. |
I've just created a new branch |
Also, try adding <intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter> to your Haven't a clue if this will change anything but one can always hope 😅 |
Okay, I think this might be the problem - the tag format not being supported, from the logs: |
I have pushed some changes to the |
Weird, the app crashes with that as a log:
Edit: |
I have pushed some more changes to the |
Unfortunately, it still has the same behaviour. Crash on one tag, same output on the other. The one, it crashes on has an empty/weirdly written in data on the first memory block. |
I think I see why it still crashes, but I'm not sure why the tag won't work.
Have you tried using other NFC libraries for Flutter to see if it works with them? |
I have pushed another update to the logs branch. |
I will check it out again on Monday when I go back to work. In regards to other libraries, I tried flutter_nfc_reader and nfc, but with no success either. |
It still crashes for me with the same output. |
How peculiar... Was this with the Also, could you try scanning the tag using the NFC Tools app and send me a screenshot (either here or by e-mail). Specifically the section with the message records. |
This explains a few things. The tag doesn't support the " As it stands right now, your tag is not usable with nfc_in_flutter, as a new API would have to be introduced to support the |
Alright, I understand, thank you for the time and effort! |
Add writing NDEF records of multiple types to example app
To test out reading RFID tags, I used the example code provided on the repository. The application runs but when I press on Start reading and consecutively try to scan a tag, I get a response from the device that the tag is found(usually vibration), however the scanned tag does not appear on the screen.
Here is an overview of the log:
The text was updated successfully, but these errors were encountered: