react-native-nfc-manager icon indicating copy to clipboard operation
react-native-nfc-manager copied to clipboard

Tag IDs returned big-endian on iOS and little-endian on Android

Open SamuelWallisBauer opened this issue 1 year ago • 4 comments

See the issue title. When an ISO-15693 tag is scanned using an Android NFC reader, the returned tag's ID is a hexadecimal string in little-endian notation. When the same tag is scanned using the same React Native program but compiled for iOS, the returned tag's ID is a hexadecimal string in big-endian notation.

This does not appear to be because the device itself is using big-endian notation. In testing, both devices are little-endian. So it appears to be a quirk with the NFC manager library. The solution, checking if the platform is OS and swapping endianness if so, is relatively simple but this may be something the maintainers wish to investigate since it produces inconsistent output across platforms.

SamuelWallisBauer avatar Dec 11 '23 22:12 SamuelWallisBauer

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Mar 11 '24 01:03 github-actions[bot]

Is this repo still being maintained?

SamuelWallisBauer avatar Mar 11 '24 13:03 SamuelWallisBauer

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jun 10 '24 01:06 github-actions[bot]

Still an issue as far as I know.

SamuelWallisBauer avatar Jun 11 '24 16:06 SamuelWallisBauer