revtel / react-native-nfc-manager

React Native NFC module for Android & iOS
MIT License
1.39k stars 317 forks source link

Terminator byte issues on Android #576

Closed yaseenmustapha closed 11 months ago

yaseenmustapha commented 2 years ago

Am seeing strange behaviour with the terminator byte (0xFE) on Android. When writing the exact same message on iOS, I don't have these issues.

Issue 1: Extra zeroes before terminator byte. I've seen from one to six 0x00 bytes before it. Verified that the last byte in the byte array passed to writeNdefMessage is 0x7D. 7d00 00fe

Issue 2: Sometimes terminator byte (0xFE) doesn't appear at all. 7d00 0000

Expecting for both: 7dfe 0000

Device used: Samsung Galaxy S8+ Android 9

react-native-nfc-manager version: 3.14.0

yaseenmustapha commented 2 years ago

Steps to reproduce Issue 1:

  1. Download https://github.com/revtel/react-native-nfc-rewriter on Android and iOS
  2. Write 'Test1' as a text record on iOS and Android
  3. Readback tag using ST25 app: Android: Android

iOS: iOS

Notice that at Addr 20 Android has two extra 0x00 bytes before the terminator 0xFE byte

github-actions[bot] commented 1 year 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.

yaseenmustapha commented 1 year ago

Adding comment as issue still persists

github-actions[bot] commented 1 year 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.

yaseenmustapha commented 1 year ago

Adding comment as issue still persists

github-actions[bot] commented 1 year 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.

yaseenmustapha commented 1 year ago

Adding comment as issue still persists

github-actions[bot] commented 12 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.

github-actions[bot] commented 11 months ago

This issue was closed because it has been stalled for 5 days with no activity.

yaseenmustapha commented 11 months ago

Adding comment as issue still persists.