react-native-nfc-manager
react-native-nfc-manager copied to clipboard
iOS cancelTechnologyRequest -> requestTechnology -> Duplicate registration
In iOS, NfcManager.cancelTechnologyRequest()
does not immediately cancel the request, and has no feedback event about when the request has been canceled. If you execute NfcManager.requestTechnology()
in the meantime, it will return with an error: Oops! [Error: Duplicated registration]
How to reproduce:
- Activate the scan with
NfcManager.requestTechnology()
- Scan the tag
- Immediately swipe down on the iOS's scan prompt screen to hide it.
- Activate the scan again with
NfcManager.requestTechnology()
+1
+1
Any update on this? or how to handle error?
:+1
The only solution that I've found to this so far is delaying the read requestTechnology call (2 seconds). Seems not like an ideal solution.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Has anyone found a solution to this? I believe it may help me solve my issue... I experienced this duplicate registration problem, so I tried to call requestTechnology() once, then loop through calling getTag() multiple times, and finally cancelTechnology() when the user is done but I'm getting the issue in #645.