Bar code scanner error

0
Hello Team,   Could you please provide an instruction how to configure BarCode scanner widget step by step? I`ve got an error “Can`t detect a camera”. The plugin I`ve added to mobile application and tested the app on my phone.   Thank you 
asked
5 answers
1

Your error regarding Source path does not exist: google-services.json is an unrelated error, and probably caused by push notifications being enabled in your mobile build process. (and should really be asked in a different topic)

Are you actually using push notifications? Then update all the relevant modules and follow the manual here https://docs.mendix.com/howto/mobile/push-notifications to switch to Google Firebase for push notifications.

Are you not actually using push notifications, but have you enabled them in your build config? Toggle the switch and retry it.

answered
0

Hi Vsevolod,

Please see the forum question : https://forum.mendix.com/link/questions/91908.

I believe in the link above your question is answered.

answered
0

Hi Vsevolod,
 

I've experienced the similar issue and this could be caused by a missing permission for barcode widget. 
The issue can be resolved by adding the following lines to the custom PhoneGap/Cordova configuration (config.xml). 
 

<plugin name="phonegap-plugin-barcodescanner" />
 <edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
    <string>To scan barcodes</string>
</edit-config>

 With this, barcode widget works as expected.

 

answered
0

Do you know how to fix this error? Error: Source path does not exist: google-services.json

 

I`ve added the plugin according to doc.

 

 

answered
0

my issue i cannot scan the barcode using widget barcode scanner hybrid but for QR code it is ok

answered