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. Image for the cookie policy date
close icon

SfBarcode sometimes generating invalid QR

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

4 Replies

KC Karthikeyan Chandrasekar Syncfusion Team 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  



PP Prashant Purmah 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


PP Prashant Purmah March 11, 2019 11:36 AM UTC

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

Attachment: landscape.png_3fad5eda.zip


KC Karthikeyan Chandrasekar Syncfusion Team 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  


Loader.
Live Chat Icon For mobile
Up arrow icon