revtel / react-native-nfc-manager

React Native NFC module for Android & iOS
MIT License
1.32k stars 312 forks source link

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

Open SamuelWallisBauer opened 7 months ago

SamuelWallisBauer commented 7 months ago

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.

github-actions[bot] commented 4 months ago

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.

SamuelWallisBauer commented 4 months ago

Is this repo still being maintained?

github-actions[bot] commented 1 month ago

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.

SamuelWallisBauer commented 1 month ago

Still an issue as far as I know.