Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Implement html5-qrcode Torch/Flashlight feature in frappe.ui.Scanner | GoodFirstPicks

Implement html5-qrcode Torch/Flashlight feature in frappe.ui.Scanner

frappe/frappe 8 comments 1mo ago
View on GitHub
lowopenScope: clearSkill match: maybeFrappe / ERPNextPython

Why this is a good first issue

Adding a Torch button to the Scanner UI is straightforward but requires camera API knowledge.

AI Summary

Users need a Torch button in the Scanner UI for low-light conditions. The task involves integrating the html5-qrcode library's Torch feature into frappe.ui.Scanner. No major blockers, but requires familiarity with camera APIs.

Issue Description

Is your feature request related to a problem? Please describe. Many users on manufacturing shopfloors perform their work throughout the whole plant, including areas with lower levels of lighting (think cold rooms, storage areas etc). Their work includes scanning product barcodes using the Barcode Scanner on Data fields with Options set to Barcode. When there is not enough light for the device's camera, the barcode scanner doesn't work.

Describe the solution you'd like To add a "Torch" button on the frappe.ui.Scanner prompt, that controls the Torch/Flashlight if supported.

html5-qrcode, the library that is used by frappe.ui.Scanner, has a feature of turning on the device's Torch/Flashlight (if it is supported) - see mebjas/html5-qrcode/issues/129.

Describe alternatives you've considered

  • Attempted to turn on the device's Torch/Flashlight while the frappe.ui.Scanner prompt is open, but the Torch/Flashlight can not be controlled from the device's setting shortcuts/status bar if an app is using the camera (iOS and Android)

Additional context

An example:

image

GitHub Labels

feature-requestgood first issue

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Risk Flags

  • requires understanding of camera API integration
Loading labels...

Details

Points10 pts
Difficultylow
Scopeclear
Skill Matchmaybe
Test Focusedno