Iam using NFC in my app for reading personal chips. Problem is, that exactly same app, with exactly same code, works differently on differenct devices. I tested it on Samsung A5,A3 and Nokia 3. NFC works on A5 and Nokia 3, but on A3, Nfc doesnt work. It reads the chip (because it shows android system popup, that this nfc tag is not supported), but no event in my app is raised. Iam using addTagDiscoveredListener method for listening for events. Any ideas why this happens, and how to fix it?
Does it work in other NFC apps?
What library are you using for NFC?
What is your
ionic info output?
I tried to create blank ionic app, add just nfc and ndef, and try all the listeners, but on Samsung A3 it dont work.
Iam using nfc plugin from ionic native. Are there any other options?
My ionic info
cli packages: (C:\angular\dochazkamobilni\node_modules) @ionic/cli-utils : 1.13.1 ionic (Ionic CLI) : 3.13.2 global packages: cordova (Cordova CLI) : 7.1.0 local packages: @ionic/app-scripts : 3.0.0 Cordova Platforms : android 6.3.0 Ionic Framework : ionic-angular 3.7.0 System: Node : v6.9.1 npm : 4.1.1 OS : Windows 10 Misc: backend : legacy
I repeat my question:
I downloaded app from google play, and even it cant read the tags, iam using… But the popup with “Type of NFC tag not supported” shows, so it detects it somehow…
So the problem is not with Ionic but the device.
If you also want to detect like the other app you will have to look for some functionality in a plugin that can tell you so.