Comments (4)
I removed startNfc from everywhere except onResume and init.
I still need to look at putting nfcAdapter into a member variable and the threading issues based on the link above
from phonegap-nfc.
This fix seems to have caused an issue whereby an ACTION_TECH_DISCOVERED may not get triggered the first time a tag is scanned after registerNdef is called - an ACTION_NDEF_DISCOVERED is triggered instead, because the foreground dispatcher has not yet been updated with the new IntentFilters (it seems to get updated afterwards, so the next tag scan will trigger the correct action).
This seems to be fixed by calling startNfc after registerNdef, but I'm unsure whether this is safe to do.
from phonegap-nfc.
Do you have some sample code demonstrating the problem, that would help work through a solution.
I expect that I need to call foreground dispatch after modifying the filters, but handling the illegal state exception. I wonder if this is related to #99.
from phonegap-nfc.
Closing old issue
from phonegap-nfc.
Related Issues (20)
- Support for ISO18092 tags in iOS
- Writing NFC Tag didn't succeeded every time in Quasar Cordova mobile App
- android NFC Card HOT 1
- NFC scanning not working IOS HOT 7
- SerialNumber not being retrieved on iOS HOT 1
- Android 12 SDK not fire scan event HOT 3
- Ionic NFC on Android 12 Crushing the App HOT 8
- Ionic Android 13 makeReadOnly java.io.IOException HOT 3
- Does not work with Xcode 14.3 and iOS 16.4 HOT 3
- Does this plugin support BAC ( Basic Access Control ) to read NFC Chip on ePassport ? HOT 1
- NFC Writting Error - Only one tag technology can be connected at a time HOT 6
- Ionic capacitor targetsdk 33 app crash with plugin is installed without nfc plugin work works ok HOT 28
- On ios while reading tag give error 203. "System resources unavailable HOT 7
- NFC Tag Writing Issue HOT 1
- The first two Characters are getting trimmed
- Android Api 34 error Android 14
- Android Api 34 error Android 14 HOT 13
- NfcPlugin.java:554
- NEW Repo for issues and contributions HOT 11
- Read sectors and blocks of my mifare card with C#
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phonegap-nfc.