MobbScan React Native SDK: Error Handling
From v2.20.0 the plugin returns an error code, according with the one that the native SDKs do. These codes are returned in the ERROR
eventes. These events are:
ERROR_INIT_EVENT
ERROR_START_SCAN_EVENT
ERROR_DETECTED_EVENT
ERROR_SCAN_EVENT
ERROR_MATCH_EVENT
ERROR_DETECT_FACE_EVENT
ERROR_VIDEO_ACQUIRED
On these events, the errors will be returned like this:
emitter.addListener("ERROR_INIT_EVENT",error => {
console.log(error.ERROR_CODE);
});
Here you can find the error codes that will be returned from each platform: