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

isAvailable() is a fake false condition #186

Open
guihsdev opened this issue Apr 25, 2024 · 1 comment
Open

isAvailable() is a fake false condition #186

guihsdev opened this issue Apr 25, 2024 · 1 comment

Comments

@guihsdev
Copy link

we have 3 conditions on nfcAdapter

    when {
                    this.nfcAdapter == null -> result.success("not_supported")
                    nfcAdapter.isEnabled -> result.success("available")
                    else -> result.success("disabled")
                }

this is for considering when a device don't have NFC support, when NFC is disabled and when is activated.
On simple use of IsAvailable() we could just receive false when has NFC but is only disabled.

i know iOS works on the way IsAvailable works today, but i think a platform specific case need to be implemented...

@okadan
Copy link
Owner

okadan commented May 7, 2024

This issue will be resolved in v4.0.0. (#128)

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

No branches or pull requests

2 participants