Mobile app is configurable to use Scanner controller, in order to manage bar code information.
In the following link you can find all information about the backend configuration:
https://community.dynamics.com/crm/b/crminogic/archive/2017/01/13/read-barcode-value-using-barcode-scanner-control-in-dynamics-365
It reads the barcode and sets the barcode value in the respective field