scanCodes(){
this.barcodeScanner.scan().then(result=>{
if( !result.cancelled ) {
this.scanCodes();
}
});