128
Views
6
Comments
[QR Code Scanner] QR Code scanner opens selfie camera on mobile
Question
qr-code-scanner
Mobile icon
Forge asset by Vitor Teixeira
Application Type
Mobile

Hello people i use the QR Code Scanner plugin to scan QR codes. However on the mobile app, it opens the selfie camera. Ofcourse i want it to open the back camera, how can i fix this to open tha back camera of the phone?

@Vitor Teixeira

https://www.outsystems.com/forge/component-overview/8160/qr-code-scanner 


2019-11-08 16-23-42
César Mateus Conceição

Hi Vitor

I truly recommend to use another component for this.

I've been using a long time with no issues. Front or Back view.

And easy to implement.

Component: BarCode Plugin


Regards

UserImage.jpg
jing tung wong

Halo.. i am using this Barcode plugin... It is not working ... i press the icon to start reading the barcode... it is not "action". any idea?

this is my address

https://jingtung-wong.outsystemscloud.com/ProductCatalog/

1.png
2019-11-08 16-23-42
César Mateus Conceição

Hi Jing

You can look in my demo and see if it's helpful

Mine works well

If need assistance let me know

UserImage.jpg
Kriti Tiwari

Hi Ceser, 
I understand this is an older post, but do you mind sharing how you fixed the issue with the plugin opening only selfie camera?

UserImage.jpg
Martyn Lee

I managed to fix the issue with the wrong camera being selected, ideally the component needs to allow the user to select which camera but the following code reverses the selection to the back camera. Note I have indicated where in the javascript I have changed the code, I hope this helps.


It doesn't need to see if its an iPhone or not, Android has the same behaviour.

UserImage.jpg
Martyn Lee

For clarity, the Javascript code is found in the ScanQRCode client action.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.