Record Events
Cordova ==> Core module
A document event is fired each time a record is submitted to the Validic API. A success event is emitted after a record has successfully uploaded to the server, and an error event is emitted if a record upload fails for any reason. Registration of listeners is typically done during app initialization to catch events for record uploads which may occur upon app launch.
document.addEventListener(ValidicMobile.InformCore.InformRecordSubmittedEvent, (event) => {
console.log(event.payload.informRecord);
});
documentation.addEventListener(ValidicMobile.InformCore.InformRecordSubmitFailedEvent, (event) => {
console.error(event.error);
});
Updated 2 days ago