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

Poll gives no result on Galaxy S24 (Android 14) #190

Closed
ThomasRuvoletto opened this issue Nov 18, 2024 · 4 comments
Closed

Poll gives no result on Galaxy S24 (Android 14) #190

ThomasRuvoletto opened this issue Nov 18, 2024 · 4 comments

Comments

@ThomasRuvoletto
Copy link

Hi,
we have been working with flutter_nfc_kit on our application to interact with controllers with Mifare Ultralight and NfcV tags.
This works for most phones we tried it with, however we cannot make it work with a Samsung S24 (Android 14 / OneUI 6.1 / Build number UP1A.231005.007.S921BXXS5AXJ8).

We tested the example application provided in the package, and even with it, we cannot trigger any reading: the FlutterNfcKit.poll() method is called but when the nfc tag is approached, we have no readings on the phone, and after 20 seconds a TimeoutException is triggered:
Screenshot_20241118_114428

With the same phone, we tried using NFC Tools app, which successfully identifies the tags.

The example application works with other smartphones:
image

Additionally, we tried adding the TAG_DISCOVERED intent

<intent-filter>
    <action android:name="android.nfc.action.TAG_DISCOVERED"/>
</intent-filter>

and the demo app seems to detect the tags when approaching them (the phone vibrates) but only when the demo app is not in polling.

If I can provide some additional logs I'd be happy to, just tell me how.

Thank you.

@ThomasRuvoletto
Copy link
Author

Possibly related to #152 ?

@NebulaFox
Copy link

NebulaFox commented Nov 21, 2024

I would like to add, I have found a similar problem. I made a quick NFC app in pure android and it worked correctly, so there would seem to be a problem in flutter_nfc_kit.

Also experienced the same problem on Samsung A55 Android 14.

@T-moz
Copy link

T-moz commented Dec 13, 2024

Setting readIso18092 when calling poll fixes the problem on Galaxy A55.
Even if the tag is a NfcTagType.iso15693

@ThomasRuvoletto
Copy link
Author

Setting readIso18092 when calling poll fixes the problem on Galaxy A55. Even if the tag is a NfcTagType.iso15693

Turns out you're right! This fixed the issue on our Galaxy S24 as well.
Thanks for the tip!

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

4 participants