- Home
- Forum
- Xamarin.Forms
- SfBarcode sometimes generating invalid QR
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.
Attachment: QR_Pics_f66bce3f.zip
Please find screenshots attached for both scenarios.
Attachment: QR_Pics_f66bce3f.zip
SIGN IN To post a reply.
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
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
SIGN IN To post a reply.
- 4 Replies
- 2 Participants
-
PP Prashant Purmah
- Mar 6, 2019 09:27 AM UTC
- Mar 12, 2019 11:56 AM UTC