Skip to content

NFC 읽은 데이터가 가끔 비어있는 경우 크래쉬 나는 현상 수정#1

Open
yhkim0923 wants to merge 4 commits intomainfrom
feature/nfc-error-handling
Open

NFC 읽은 데이터가 가끔 비어있는 경우 크래쉬 나는 현상 수정#1
yhkim0923 wants to merge 4 commits intomainfrom
feature/nfc-error-handling

Conversation

@yhkim0923
Copy link

@yhkim0923 yhkim0923 commented Jul 16, 2025

변경사항

  • 간혹 selectFile에서 파일을 4개 이하로 던지는 경우가 있어서 섭스크립트시 인덱스 에러발생 따라서 4이상일때만 핸들링하도록 조건문 추가
  • 기기, nfc특성상 기존에 세션을 invalidate해도 계속 살아있는 경우가 있음 이럴때 begin해도 nfc가 실행이 안되는 현상이 발생, 따라서 리트라이 로직을 추가하여 실행이 안되더라도 3번 시도하고 기존에 세션이 살아있다면 세션을 닫고 다시 시도하는 로직 추가
  • 유저가 스캔중 또는 시도하려는 도중에 취소를 하면 스캔애니메이션이 사라지지 않고 계속 떠있는 현상이 발생. 이유는 tagReaderSession delegate에 shouldNotReportNextReaderSessionInvalidationErrorUserCanceled 값만 바꾸고 아무런 동작을 안하도록 되어있음 따라서 취소했으니 UserCanceled error 던지도록 처리 (만약 이렇게 된 히스토리가 있다면 히스토리에 따라 핸들링 필요)
  • 세션 invalidate시 항상 세션을 초기화 시키도록 함

@yhkim0923 yhkim0923 self-assigned this Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant