javascript - Phonegap Built bar code scanner struggles on changed position of the camera -
i have phonegap app has been working great, until got nexus 5x. apparently google put camera in upside-down... scanning bar code becomes difficult...
for bar code scanner in config file have:
<gap:plugin name=" phonegap-plugin-barcodescanner" source="npm" />
i use below js code launch bar code scanner:
cordova.plugins.barcodescanner.scan( function (result) { var barcode = result.text; //suggest how continue code bar code received. } );
Comments
Post a Comment