user2661416
user2661416

Reputation: 29

Scanner Barcode Qr in Webview?

I would like create a app that use Scanner Barcode QR in Webview of Android. It's posible?

I've been looking around here and found nothing related to this topic :(

Thanks all!

Upvotes: 0

Views: 2070

Answers (1)

user756706
user756706

Reputation:

QR Code require Camera access to capture photo and process QR Code, Web / HTML can't access hardware of mobile, so It's not possible to create such application, but there are two possible workaround

  1. Create QR Scanning module in Native Android and use JavaScript Interface to bridge between your web and native, For more detail please visit following link http://developer.android.com/guide/webapps/overview.html

  2. As "Webaldo.at" suggest, detect html element when user click in web view and open any 3rd party QR Scanner app

Upvotes: 1

Related Questions