handle system busy error

This commit is contained in:
Michele Balistreri 2021-11-17 13:04:59 +03:00
parent 7548329c59
commit 31e057dc04
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}