Skip to content

Invoking an NFC scan from Rust causes serialization errors #2272

Open
@fynzhak

Description

@fynzhak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions