capawesome-team / capacitor-nfc

⚡️ Capacitor plugin for reading and writing NFC tags.
https://capawesome.io/plugins/nfc/
MIT License
73 stars 14 forks source link

bug: Response from techTypes not precise #46

Closed AppsService closed 10 months ago

AppsService commented 10 months ago

Plugin version: "@capawesome-team/capacitor-nfc": "^5.0.2"

Platform(s): "@capacitor/ios": "^5.5.1"

Current behavior: When tag is scanned result shown for techTypes is NDEF

⚡️  TO JS {"nfcTag":{"message":{"records":[{"tnf":1,"payload":[2,101,110,72,105],"type":[84],"id":[]}]},"maxSize":106,"id":[224,4,1,80,53,142,246,88],"isWritable":true,"techTypes":["NDEF"]}}
⚡️  [log] - NDEF

Expected behavior: TechTypes should be NfcV

Capacitor doctor:

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 5.6.0
  @capacitor/core: 5.6.0
  @capacitor/android: 5.6.0
  @capacitor/ios: 5.6.0

Installed Dependencies:

  @capacitor/cli: 5.5.1
  @capacitor/core: 5.5.1
  @capacitor/android: 5.5.1
  @capacitor/ios: 5.5.1

[success] iOS looking great! 👌
[success] Android looking great! 👌
robingenz commented 10 months ago

Which tag do you use?

AppsService commented 10 months ago

Which tag do you use?

iso15693

robingenz commented 10 months ago

This is the tech type. Please send me a link to the tag you bought.

AppsService commented 10 months ago

Based on information that I got from company, tag is NXP - ICODE SLIX

robingenz commented 10 months ago

I just published a new version with a fix:

npm i @capawesome-team/capacitor-nfc@5.1.0

Please let me know if it works now.

AppsService commented 10 months ago
⚡️  [log] - nfcTagScanned {"event":{"nfcTag":{"techTypes":["NDEF","NFC_V"],"id":[224,4,1,80,212,213,2,248],"isWritable":false,"maxSize":0}}}

Got the type 👍🏻

robingenz commented 10 months ago

Great, thank you for your response. I am closing this issue.