title: ZXing is not detecting QR Code on iOS device
body: <p>I am creating a program to read QR codes in Xamarin. I followed the steps from this link.</p>
  <blockquote>
  <p><a href="https://siddheshshelke.wordpress.com/2020/08/07/qrcode-generator-and-scanner-for-xamarin-forms-using-zxing-nuget/" rel="nofollow noreferrer">https://siddheshshelke.wordpress.com/2020/08/07/qrcode-generator-and-scanner-for-xamarin-forms-using-zxing-nuget/</a></p>
  </blockquote>
  <p>it is working perfectly on Andriod but not on iOS.
  I tried with different versions of</p>
  <pre><code>ZXing.Net.Mobile
  ZXing.Net.Mobile.Forms
  </code></pre>
  <p>and beta versions as well nothing gave me the result.</p>
  <p>here is my code.</p>
  <pre><code>var scanPageOptions = new MobileBarcodeScanningOptions()
          {
              AutoRotate = false,
              TryInverted = true,
              TryHarder = true,
              PossibleFormats = new List&lt;ZXing.BarcodeFormat&gt;() { ZXing.BarcodeFormat.QR_CODE }
          };
          var scanPage = new ZXingScannerPage(scanPageOptions);
              scanPage.IsAnalyzing = true;
              scanPage.IsScanning = true;
              scanPage.IsTorchOn = true;
  
              scanPage.OnScanResult += (result) =&gt;
              {
                  scanPage.IsScanning = false;
                  if (result != null)
                  {
                      Device.BeginInvokeOnMainThread(async () =&gt;
                      {
                          await Navigation.PopAsync();
                          await DisplayAlert(&quot;Scanned Barcode&quot;, result.Text, &quot;OK&quot;);
                      });
                  }
                  else
                  {
                      Navigation.PopAsync();
                      DisplayAlert(&quot;Scanned Barcode&quot;, &quot;No Barcode Found&quot;, &quot;OK&quot;);
                  }
                  
              };
  
              await Navigation.PushAsync(scanPage);
  </code></pre>
  <p>I tried another way as well that is.</p>
  <pre><code>MobileBarcodeScanner scanner = new MobileBarcodeScanner();
          scanner.TopText = &quot;Hold the camera up to the barcode\nAbout 6 inches away&quot;;
          scanner.BottomText = &quot;Wait for the barcode to automatically scan!&quot;;
          scanner.AutoFocus();
          //This will start scanning
  
          var scanPageOptions = new MobileBarcodeScanningOptions()
          {
              AutoRotate = false,
              TryInverted = true,
              TryHarder = true,
              PossibleFormats = new List&lt;ZXing.BarcodeFormat&gt;() { ZXing.BarcodeFormat.QR_CODE }
          };
  
          ZXing.Result result = await scanner.Scan(scanPageOptions);
          var msg = &quot;No Barcode!&quot;;
          if (result != null)
          {
              msg = &quot;Barcode: &quot; + result.Text + &quot; (&quot; + result.BarcodeFormat + &quot;)&quot;;
          }
  
          DisplayAlert(&quot;&quot;, msg, &quot;Ok&quot;);
  </code></pre>
  <p>Not giving any result on iOS.
  what I am missing to detect QR Code by the iOS device.</p>