Same same.
- iOS build
- MABS 8.0
- plugin version 5.0.5
- Scan fails with "Wrong parameter camera direction can only be backCamera or frontCamera. Defaults to backCamera."
I've tried filling CameraDirection parameter and leaving it empty, same results.
After digging a bit on Cordova plugin details, this error msg comes from https://github.com/OutSystems/cordova-outsystems-barcodescanner/blob/main/src/ios/OSBarcodeScanner.m (line 25), where source expects a value from entity identifier (1 for Entities.CameraDirection.BackCamera, 2 for Entities.CameraDirection.FrontCamera).
Instead of just erroring out, could this be modified to actually use the default value mentioned in documentation?
I don't know if it's related or not, but by looking at the Cordova javascript glue code (https://github.com/OutSystems/cordova-outsystems-barcodescanner/blob/main/www/OSBarcodeScanner.js), it seems logic has a bug where integer value for CameraDirection set in Service Studio is overwritten by string value "front" or "back".