We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfBarcode sometimes generating invalid QR

Thread ID:

Created:

Updated:

Platform:

Replies:

143140 Mar 6,2019 09:27 AM UTC Mar 12,2019 11:56 AM UTC Xamarin.Forms 4
loading
Tags: SfBarcode
Rubens Sooprayen
Asked On March 6, 2019 09:27 AM UTC

Sometimes the QR code is not well generated on iOS and therefore it can't be read by the QR Scanner.

Please find screenshots attached for both scenarios. 



Attachment: QR_Pics_f66bce3f.zip

KarthikeyanC [Syncfusion]
Replied On March 7, 2019 11:46 AM UTC

Hi Rubens, 
Greetings from Syncfusion. 
We can resolve the issue with “QR Barcode scanning issue in iOS” by setting ErrorCorrectLevel as Medium. Kindly try this solution in your end with the below code snippet to overcome the issue. 
  
<syncfusion:SfBarcode BackgroundColor="Gray" Text="c2952c50-6b00-4fdb-8ef4-22a1a0c6d587" Symbology="QRCode">  
  
    <syncfusion:SfBarcode.SymbologySettings>  
  
    <syncfusion:QRBarcodeSettings XDimension="6" ErrorCorrectionLevel="Medium"/>   
  
    </syncfusion:SfBarcode.SymbologySettings>  
  
    </syncfusion:SfBarcode>  
 
 
Regards, 
Karthikeyan  


Rubens Sooprayen
Replied On March 11, 2019 11:22 AM UTC

Hi Karthikeyan,

Our configuration is as follows:

QRBarcodeSettings settings = new QRBarcodeSettings();
settings.Version = QRVersion.VersionAuto; 
settings.ErrorCorrectionLevel = QRErrorCorrectionLevel.High; 
barcode.SymbologySettings = settings;

Note that the ErrorCorrectionLevel was already set to high and we still had that issue with the QR generated.

Based on our test, issue appears randomly when the mobile orientation is changed to Landscape, the QR image gets distorted and can't be read. 

Tested on iPhone XS iOS v12.0.1 and iPhone SE. 

Please advice.

Regards,

Rubens

Rubens Sooprayen
Replied On March 11, 2019 11:36 AM UTC

Find an example of the QR generated in landscape mode attached.

Attachment: landscape.png_3fad5eda.zip

KarthikeyanC [Syncfusion]
Replied On March 12, 2019 11:56 AM UTC

Hi Rubes, 
We have tried the sample with the provided code snippet using the device iPhone XS iOS v12.0.1 and iPhone 7 plus iOS v11.1 with orientation as Landscape. We were not able to reproduce the mentioned issue and the QR image is scanned properly without any issue. Please find the below sample link which we have tried in our end, 
 
 
Kindly modify the above sample to replicate the issue. It will helpful for us to provide the precise solution on this. 
Regards, 
Karthikeyan  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;