react-native-nfc-manager icon indicating copy to clipboard operation
react-native-nfc-manager copied to clipboard

iOS cancelTechnologyRequest -> requestTechnology -> Duplicate registration

Open asagalovskiyLB opened this issue 2 years ago • 1 comments

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:

  1. Activate the scan with NfcManager.requestTechnology()
  2. Scan the tag
  3. Immediately swipe down on the iOS's scan prompt screen to hide it.
  4. Activate the scan again with NfcManager.requestTechnology()

asagalovskiyLB avatar Aug 12 '22 22:08 asagalovskiyLB

+1

whck6 avatar Sep 15 '22 03:09 whck6

+1

chrisfinch avatar Oct 14 '22 20:10 chrisfinch

Any update on this? or how to handle error?

wordisthebird avatar Oct 21 '22 09:10 wordisthebird

:+1

erikostling avatar Jan 05 '23 16:01 erikostling

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.

erikostling avatar Jan 05 '23 16:01 erikostling

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.

github-actions[bot] avatar Apr 06 '23 01:04 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Apr 21 '23 01:04 github-actions[bot]

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.

dcanora avatar Jun 17 '23 18:06 dcanora