handle system busy error
This commit is contained in:
parent
7548329c59
commit
31e057dc04
|
@ -199,7 +199,7 @@ class StatusKeycard: RCTEventEmitter {
|
||||||
let nsError = error as NSError
|
let nsError = error as NSError
|
||||||
if nsError.code == 200 && nsError.domain == "NFCError" {
|
if nsError.code == 200 && nsError.domain == "NFCError" {
|
||||||
self.sendEvent(withName: "keyCardOnNFCUserCancelled", body: nil)
|
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)
|
self.sendEvent(withName: "keyCardOnNFCTimeout", body: nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue