From 31e057dc0432da9212d5d091563fe0d3dc4d79c3 Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Wed, 17 Nov 2021 13:04:59 +0300 Subject: [PATCH] handle system busy error --- ios/StatusKeycard.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/StatusKeycard.swift b/ios/StatusKeycard.swift index 701e2a7..81e1d17 100644 --- a/ios/StatusKeycard.swift +++ b/ios/StatusKeycard.swift @@ -199,7 +199,7 @@ class StatusKeycard: RCTEventEmitter { let nsError = error as NSError if nsError.code == 200 && nsError.domain == "NFCError" { self.sendEvent(withName: "keyCardOnNFCUserCancelled", body: nil) - } else if nsError.code == 201 && nsError.domain == "NFCError" { + } else if (nsError.code == 201 || nsError.code == 203) && (nsError.domain == "NFCError") { self.sendEvent(withName: "keyCardOnNFCTimeout", body: nil) } }