Skip to content

Conversation

@adeebshihadeh
Copy link
Contributor

@adeebshihadeh adeebshihadeh commented Dec 15, 2025

turns out there's a built-in browser API for reading QR codes now, and it performs signifcantly better than the old library we used to use.

we use this polyfill library since iOS doesn't have BarcodeDetector enabled by default in Safari yet

https://github.com/Sec-ant/barcode-detector


Scans instantly on all of these platforms now:

  • iPhone Air (single lens) on Safari
  • iPhone Air (single lens) on Chrome
  • iPhone 17 Pro (multiple back cams) on Safari
  • iPhone 17 Pro (multiple back cams) on Chrome
  • Pixel 6 Pro with Chrome
  • Sony Xperia 5 IV with Firefox
  • Samsung Browser (community member tested on random QR code)
  • my PC's webcam

@github-actions
Copy link

github-actions bot commented Dec 15, 2025

Welcome to connect! Make sure to:

  • read the contributing guidelines
  • mark your PR as a draft until it's ready to review
  • post the preview on Discord; feedback from users will speedup the PR review

deployed preview: https://579.connect-d5y.pages.dev

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 15, 2025

Deploying connect with  Cloudflare Pages  Cloudflare Pages

Latest commit: ab71deb
Status: ✅  Deploy successful!
Preview URL: https://7bc89bed.connect-d5y.pages.dev
Branch Preview URL: https://goodscan.connect-d5y.pages.dev

View logs

@adeebshihadeh adeebshihadeh changed the title QR scanner: don't downscale QR scanner: switch to BarcodeDetector Dec 15, 2025
@adeebshihadeh adeebshihadeh merged commit d3e47c8 into master Dec 16, 2025
4 checks passed
@adeebshihadeh adeebshihadeh deleted the goodscan branch December 16, 2025 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants