cancel
Showing results for 
Search instead for 
Did you mean: 

QR-code scanning

Enable 2D scanning of barcodes.

Status: Completed

The new Barcode scanner control is out, and we recommend it to anyone who needs to scan a barcode, QR code or data matrix codes on their mobile devices.

 

A couple of notes:

  1. Old barcode scanner control has been renamed to Web barcode scanner.  It is disabled by default and can be enabled in the experimental features settings.  We are keeping it around as it is currently the only way to scan barcodes in a web browser.
  2. The ScanBarcode function has been removed from experimental properties.  The function will still work for existing apps, but those apps should be updated to use the new Barcode scanner control.  It is the same functionality underneath, and it will store the value for you in the control, so it should be easier to use than the function.
Comments
PowerApps Staff rc
PowerApps Staff
Status changed to: Under Review

(Clarifying to Under Review, as our current approach here is experimental and may change in the future as we gain feedback and proceed)

Cam
Level: Powered On

i've noticed some inconsistant results when scanning barcodes from a distance (~30cm + away)

 

i've encoded a text string "101060111111" into a 2D Barcode.

~95% of the time, the ScanBarcode() feature correctly decodes the barcode as "101060111111".

~5% of the time, the ScanBarcode() feature incorectly decodes the barcode, and inserts random characters (eg. "1010zz~1111")

 

the incorrect decoding occurs when i'm trying to scan barcodes really quickly, or from too great of a distance (~30cm + away).

in well light, close proximity, the ScanBarcode() function works amazingly. 

 

i understand this is not a fault of the ScanBarcode() function, its more likely a result of my phone's camera not focusing quickly enough or not being high enough megapixel or something

 

===

 

~~feedback~~

my encoded text string is always going to match a pattern (eg. 10106\d\d\d\d\d\d\d)

 

if you implement the ScanBarcode() function as a PowerApp Control, could you please implement a Property on the control, which works in a similar way to the IsMatch function? 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-ismatch

 

ie. If i enter a code pattern into the ScanBarcode PowerApp Control, then the control will *only* decode barcodes/qrcodes which match that pattern... and if a code is decoded which doesnt match that pattern, it will be ignored and the barcode scanning screen will remain open until a code which matches the pattern is scanned?

 

 

 

 

 

 

Level 10

Works extremely well!  Well done!

Cam
Level: Powered On

During testing in our warehouse environment, we have found the barcode scanner function appears to scan more reliably in Landscape mode than Portrait mode.

 

Unfortunetly even if we disable screen rotation in the device settings, the barcode screen continues to rotate automatically.

 

~~feedback~~

could you please add a way to lock the rotation of the barcode scaner screen?

eg. locked in Landscape mode, Portrait mode, or Auto Rotate with device

 

thank you

 

Cam
Level: Powered On

Can you please add a way to generate QR Code images within Power Apps?

If not within Power Apps, then perhaps in Flow.

PowerApps Staff
Status changed to: Started

This is currently being worked on and will be delivered as part of the new Barcode scanner control which will be supported on iOS and Android and will replace the experimental function.

 

It will be in production before Christmas 2018.

Level: Powered On

@FilipK

Are you still on track to complete the new Barcode scanner control before Christmas 2018?

Thank you for your feedback. 

PowerApps Staff

Yes, we are doing the final present-wrapping and it will be on a sleigh soon.  Expected mid December.



 

Level: Powered On

@FilipK

Thank you!

PowerApps Staff
Status changed to: Completed

The new Barcode scanner control is out, and we recommend it to anyone who needs to scan a barcode, QR code or data matrix codes on their mobile devices.

 

A couple of notes:

  1. Old barcode scanner control has been renamed to Web barcode scanner.  It is disabled by default and can be enabled in the experimental features settings.  We are keeping it around as it is currently the only way to scan barcodes in a web browser.
  2. The ScanBarcode function has been removed from experimental properties.  The function will still work for existing apps, but those apps should be updated to use the new Barcode scanner control.  It is the same functionality underneath, and it will store the value for you in the control, so it should be easier to use than the function.