# \[Question\] Scan Barcode through tablet camera

**URL:** <https://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465>\
**Category:** Ignition Early Access\
**Created:** [March 19, 2019, 8:55pm UTC](https://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465 "2019-03-19T20:55:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![SMcIntosh](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@SMcIntosh](https://forum.inductiveautomation.com/u/SMcIntosh)\
**Post date:** [March 19, 2019, 8:55pm UTC](https://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465/1 "2019-03-19T20:55:23Z")

</div>

I’m trying to scan a barcode using a tablet camera, but so far I haven’t been able to get it working. I have a button with the action Scan Barcode set under the onClick event. The barcode type is set to Data Matrix. I have made no other changes to the action settings.

If my understanding is correct, when clicking the button my browser should ask for permission to access the tablet camera. When I give permission, the camera view should open allowing me to scan a barcode. When the scan is complete, I am returned to the browser and the Barcode Scanned session event gets called.

However, right now when I click the button nothing happens - I don’t receive any kind of prompt. Is there something else I should be configuring, or is there something wrong with my understanding?

I’m on Android (have also tried from iOS) using Chrome. In my browser I have the camera settings set to “ask first”.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 19, 2019, 9:19pm UTC](https://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465/2 "2019-03-19T21:19:47Z")

</div>

Install the Ignition v8 app for android and try from within it.

---

<div class="post-metadata">

**Author:** ![SMcIntosh](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@SMcIntosh](https://forum.inductiveautomation.com/u/SMcIntosh)\
**Post date:** [March 19, 2019, 9:58pm UTC](https://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465/3 "2019-03-19T21:58:09Z")

</div>

Thanks for the advice! It does work from the app, which gives me something to work with. Perspective isn’t going to be able to access a tablet camera from a browser then?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 19, 2019, 9:59pm UTC](https://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465/4 "2019-03-19T21:59:39Z")

</div>

> [@SMcIntosh](#):
>
> Perspective isn’t going to be able to access a tablet camera from a browser then?

I don't know that that is sufficiently standardized across brands and browsers. Maybe. I'm not really the one to ask.... /-:

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 19, 2019, 10:35pm UTC](https://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465/5 "2019-03-19T22:35:40Z")

</div>

No, the barcode action may ONLY be called by devices using the mobile application. If you try to call the Scan Barcode Action from a browser, you’ll notice a warning in the console, that your Action was ignored.

We can’t call that action from a browser, because not every workstation has a camera.

---

<div class="post-metadata">

**Author:** ![mlatour](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@mlatour](https://forum.inductiveautomation.com/u/mlatour)\
**Post date:** [April 28, 2019, 3:17pm UTC](https://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465/6 "2019-04-28T15:17:40Z")

</div>

Is there plans to make a windows app for Perspective? We currently have a bunch of Surface tablets running Vision, and we’d eventually like to run Perspective on them, utilizing the scan barcode feature. If there was a windows app, I’d assume it would be able to access the camera?

---

<div class="post-metadata">

**Author:** ![mrojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrojas/32/6394_2.png) [@mrojas](https://forum.inductiveautomation.com/u/mrojas)\
**Post date:** [April 30, 2019, 9:00pm UTC](https://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465/7 "2019-04-30T21:00:50Z")

</div>

We do have plans for desktop apps that will utilize device hardware. Unfortunately, I don’t have an estimate for when they’ll be available. They’re still very much in the planning phase right now. I’ll update this post when I have more information.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [February 22, 2021, 2:11am UTC](https://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465/8 "2021-02-22T02:11:56Z")

</div>

@cmallonee @mrojas

Hi guys, is this available now when using Perspective Workstation?

---

<div class="post-metadata">

**Author:** ![Toobor](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@Toobor](https://forum.inductiveautomation.com/u/Toobor)\
**Post date:** [February 6, 2025, 12:37pm UTC](https://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465/9 "2025-02-06T12:37:39Z")

</div>

Hi, any updates on this?
