Scan QR code and take photos using web app

89 views
Skip to first unread message

Vipin Gupta

unread,
Oct 5, 2017, 8:48:47 AM10/5/17
to commcare-users
Hi,

In one of our small project, we are planning to use web apps to collect data. We need your advice on followings.

1. can we connect CommCare with any external QR code reader? if yes please provide guidance on that.
2. can we connect CommCare with Laptop camera/webcam of the system in order to capture photos? if yes please provide guidance on that.

Thanks,
Vipin Gupta

William Pride

unread,
Oct 5, 2017, 8:56:42 AM10/5/17
to commcare-users
Hello,

Unfortunately Web Apps does not support either of those functionalities. For QR Code the closest you could get would be to scan the code using your external reader, then enter the resulting string into a text field in web apps.

Cheers,
Will

--
You received this message because you are subscribed to the Google Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Clayton Sims

unread,
Oct 5, 2017, 9:48:36 AM10/5/17
to commcare-users
Vipin,

On a desktop system, most USB/Bluetooth QR Code Readers will provide their input simply as a string of input from a Keyboard, so using CommCare's mobile QR code scanning capabilities won't be necessary.

If you want an app which functions equivalently on Mobile and Web, when structuring your forms I'd recommend following a pattern where each QR input looks like:

  • input_qr: QR Code Scan
  • input_manual: Text Entry
  • input_normalized: Hidden Value
Where input_manual has a display condition where it is hidden when input_qr isn't blank and the "normalized"  hidden value is set to whichever input isn't blank.

That will let you have a way to provide a QR scan which will work with either the mobile phone camera, or an external keyboard driven QR reader on web apps.

-Clayton
Reply all
Reply to author
Forward
0 new messages