ionic-team / ionic-team/capacitor-barcode-scanner

CapacitorBarcodeScannerCameraDirection.BACK always uses front camera on Web

Open
#90 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
64
Forks
47
Avg merge
1h 55m
Merged PRs (30d)
1

Description

As mentioned in the title, I encountered an issue with CapacitorBarcodeScannerCameraDirection.BACK on Web.
Even when explicitly setting it to use the back camera, it still defaulted to the front camera.

I implemented a quick fix inspired by a capacitor-community PR, which successfully resolved the issue in my case.
I’ve already opened a PR for this and I’m waiting for it to be reviewed. I’m open to making any necessary changes to ensure it gets merged as soon as possible.

[PR LINK](https://github.com/ionic-team/capacitor-barcode-scanner/pull/89)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing PR #89, which contains the reported fix, and reproduce the Web behavior with CapacitorBarcodeScannerCameraDirection.BACK. Confirm that Web selects the back camera and check the PR’s validation before making any requested review changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.