Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS cancelTechnologyRequest -> requestTechnology -> Duplicate registration #546

Closed
asagalovskiyLB opened this issue Aug 12, 2022 · 8 comments
Labels

Comments

@asagalovskiyLB
Copy link

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()
@whck6
Copy link

whck6 commented Sep 15, 2022

+1

1 similar comment
@chrisfinch
Copy link

+1

@wordisthebird
Copy link

Any update on this? or how to handle error?

@erikostling
Copy link

:+1

@erikostling
Copy link

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.

@github-actions
Copy link

github-actions bot commented Apr 6, 2023

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 github-actions bot added the Stale label Apr 6, 2023
@github-actions
Copy link

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

@dcanora
Copy link

dcanora commented Jun 17, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants