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

Invoking an NFC scan from Rust causes serialization errors #2272

Open
fynzhak opened this issue Jan 7, 2025 · 0 comments
Open

Invoking an NFC scan from Rust causes serialization errors #2272

fynzhak opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working plugin: nfc

Comments

@fynzhak
Copy link

fynzhak commented Jan 7, 2025

For the NFC plugin there appears to be a mismatch in the messaging between the Kotlin code and the Rust interface. The Rust side wants to receive a ScanResponse, but the Kotlin code replies back with only a NfcTag type object.
There is also a mismatch in the NfcTag struct. The id should probably be a Vec and the kind should (I think) be a Vec.
Finally, it looks like Java's byte is signed, so that causes further problems for deserializing into a u8.

I don't have an iOS device so I'm not sure if any of these issues occur there.

@FabianLars FabianLars added bug Something isn't working plugin: nfc labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin: nfc
Projects
None yet
Development

No branches or pull requests

2 participants