Closed rolandjitsu closed 6 years ago
NFC code won't work in emulators. It needs a real NFC chip.
@don I see. But perhaps it would be a good idea not to crash the app, it makes it impossible to debug in the emulator otherwise.
But this could be something that I'm doing wrong ...
I agree that crashing is not good. In the past nfc stuff just didn’t work. Maybe it’s an issue in the Ionic native wrapper or different plugin behavior with Gennymotion.
Can you duplicate this in a simple Cordova app without Ionic?
It's possible, there has been a lot of changes. It might have been fixed just recently, but let me test it again and I'll get back to you.
I'm trying to debug my app and why it crashes and I've noticed that this plugin logs the following on
API 23
, custom phone:and on
API 21
, custom phone:It keeps logging this forever, until the app crashes. I suspect that this should not normally happen.
I'm using this plugin with Ionic and NFC plugin wrapper.
Note that I'm running on a Genymotion emulator.
My current Ionic env: