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

Request to check issue NFC can not read write with android version 12 #5

Open
khounchandaro opened this issue Apr 11, 2022 · 4 comments

Comments

@khounchandaro
Copy link

I have problem with NFC android version 12 with my code cannot read and write tag.

URL : As the code we use this source code: https://github.com/underwindfall/NFCAndroid

Detail Information about problem:
As the above URL code we use host-based card emulation (HCE) for write information via NFC device version 12. At previous time when I test this device with version 11 host-based card emulation (HCE) can write information as well and other devices can read. but when it's these devices upgrade to version 12, now cannot write and read anymore.

Could you please help use for how can we implement with that or you can make suggestion or guide use more about how to implement development for Payment via NFC tap to pay (phone to phone by mobile app).

Could you guide us how can we make payment via NFC tap to pay (phone to phone)? The case version 12 above now we don't have solution yet.

Thanks your for your support. We are waiting from your confirmation back.

Best regard.

@underwindfall
Copy link
Owner

Hello,
Currently, I don't have a plan to work on this project besides I don't have a device that supports Android 12 to test it.

PR is welcome if you find a solution to solve the issue you described.

@jams032
Copy link

jams032 commented Jun 15, 2022

@ALL, i have run it Android, and iOS reader. Writing text in Android app then reading from iOS/android works fine.
Question :

  1. How can i write in iOS and Android can read that ? I meant , does iOS support for Host Card Simulation like this ? So that i can write then read from iOS as well.
  2. My ultimate intension is sending image(now trying with text only) through NFC, is it possible iOS<->Android vice versa ? JFYI: I don't want to use BLE or WIFI connection.

Someone please help me in someway.

@usmankubee
Copy link

@underwindfall Hey I'm also unable to read NFC data on Android 12 will it be possible to look into this issue it would be great help. From my understanding the problem is with the "READ_CAPABILITY_CONTAINER_RESPONSE" as when I used NXPInfo app to see the emulated tag information its passing info but its not emulating storage and so there is no Ndef Record which is creating issue for the reading part in Android 12. I have attached screenshot for the NXPInfo response. If you could kindly resolve this issue it would be great help. Looking for your positive response. Thank you
Screenshot_20220616-122014_TagInfo

@Zardozz
Copy link

Zardozz commented Apr 5, 2023

It seems that reducing the Max Ndef size to 32K (7FFF) has some success on HCE working on Android 12 as per https://stackoverflow.com/questions/75932985/why-does-data-transfer-over-nfc-with-hce-only-work-with-android-lower-12

As even though the Type 4 spec says the max Ndef size in the CC is 64K, the spec notes that you can only read/write to 80FE, thus limiting the practical size.

It seems there was a change to Android to reduce the allowed to the more logical 32K

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

5 participants