# QR Code reading capability within Bubble?

**URL:** <https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714>\
**Category:** Questions\
**Created:** [July 26, 2016, 11:51pm UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714 "2016-07-26T23:51:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpatt](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jpatt](https://forum.bubble.io/u/jpatt)\
**Post date:** [July 26, 2016, 11:51pm UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/1 "2016-07-26T23:51:39Z")

</div>

Hi there, fellow Bubblers!

I’ve been trying to research the possibility of incorporating a QR code reading capability within a Bubble app. I’ve looked into both the Bubble API Connector and Blockspring, and it seems like neither one of these are quite right (or even possible at all.) So far I’ve only found an API that detects/reads QR codes that are on the web (as opposed to via a mobile device out in the world).

Link: [http://goqr.me/api/doc/read-qr-code/](http://goqr.me/api/doc/read-qr-code/)

There are several different SDK’s available for incorporating QR code reading capabilities into a mobile app build; however, it seems like it’s not possible with Bubble?

So far, in searching the forum/community, I have only found a couple posts regarding QR code generation (not readability).

My intent is to enable the app user to click on a button titled “scanner,” which then calls a QR code reading app that is on the user’s mobile device. After that QR code reading app completes reading the QR code on a product somewhere in a store, then the results would be returned back to the Bubble app and searched against the bubble database within the app.

If this doesn’t make sense, let me know!

So, my question is: Is it possible to enable my Bubble app to work with another app that is in the user’s mobile device? Or at least call the image processor (i.e. mobile phone’s camera) and read a QR code and return the results back to the Bubble app?

Thanks for any insight!

Jp

---

<div class="post-metadata">

**Author:** ![julian](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/julian/32/5221_2.png) [@julian](https://forum.bubble.io/u/julian)\
**Post date:** [July 28, 2016, 2:34am UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/2 "2016-07-28T02:34:49Z")

</div>

I´m looking for the same feature. Hope there is some solution. 😁

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [July 28, 2016, 5:52am UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/3 "2016-07-28T05:52:29Z")

</div>

Fairly simple if you are OK with uploading a photo of the QR code and then scanning.

[https://buildingonbubble.com/block/qr-code-scanner-1469686113296x983831199370182700](https://buildingonbubble.com/block/qr-code-scanner-1469686113296x983831199370182700)

I think having something embedded on a mobile web page … would be difficult.

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [July 28, 2016, 1:00pm UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/4 "2016-07-28T13:00:50Z")

</div>

Have you tried the API connector for this? With a file uploader you may be able to make it work. Worth trying.

---

<div class="post-metadata">

**Author:** ![jpatt](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jpatt](https://forum.bubble.io/u/jpatt)\
**Post date:** [July 28, 2016, 3:19pm UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/5 "2016-07-28T15:19:10Z")

</div>

[“Reading QR codes using the mobile vision api.”](http://code.tutsplus.com/tutorials/reading-qr-codes-using-the-mobile-vision-api--cms-24680)

Very intrigued by this information; however, I am not a programmer or developer (oh woe to me!) I get the notion that Bubble is integrally web-based; therefore, everything happens through URL/HTTP requests (correct me if I’m wrong).

@emmanuel My idea is to enable or integrate QR Code _reading_ capability with the Bubble platform. In order to try and save myself some research time, may I ask if this is feasible using the API connector?

In other words, could a QR code reader (assuming an api is available) be called from the Bubble app in order to scan a QR code AND save it as an image AND THEN send that captured image to the Bubble app to be processed? Or would the user be required to separately scan the qr code, save it as an image, then upload it to the bubble app to be processed?

Thanks for your insight, all!

Jp

---

<div class="post-metadata">

**Author:** ![jpatt](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jpatt](https://forum.bubble.io/u/jpatt)\
**Post date:** [July 28, 2016, 3:21pm UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/6 "2016-07-28T15:21:47Z")

</div>

@NigelG, thanks so much for that link! It just may have to do for a working conceptual prototype app…

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [July 28, 2016, 4:07pm UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/7 "2016-07-28T16:07:32Z")

</div>

The issue I think you have is the “scan the QR code” means … have access to your camera.

An external API can’t easily have access to a phone’s camera. If the QR reader app was installed on the phone, and you could use the API … that might work. But that is mobile phone dev stuff and totally beyond my understanding.

---

<div class="post-metadata">

**Author:** ![jpatt](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jpatt](https://forum.bubble.io/u/jpatt)\
**Post date:** [August 18, 2016, 10:57pm UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/8 "2016-08-18T22:57:46Z")

</div>

Okay, I’m now working on figuring out how to do QR reading capabilities via the API Connector. @NigelG, I checked that link you shared with me, and my issue is how do I make the “fileurl=” parameter be the url of the QR Code image that was just uploaded? I mean, assume that the user would upload different QR images after checking the data each time, that means the API Connector’s call would need a new “fileurl” parameter each time correct? or would the file uploader’s image be the same url every time, with each uploaded image replacing the previous image?

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [August 19, 2016, 5:46am UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/9 "2016-08-19T05:46:49Z")

</div>

If you look at the plugin on the editor, you will see the URL is “Client Safe” …

 ![](https://us1.discourse-cdn.com/bubble/original/2X/8/8d5460b52879f64c586568441f3c938832c76b76.png)

… this means you can override it in your workflow. In this case the URL of the image you have just uploaded.

![](https://us1.discourse-cdn.com/bubble/original/2X/3/367c0c98141130c51e07d6aacba8617032d220ba.png)

---

<div class="post-metadata">

**Author:** ![jpatt](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jpatt](https://forum.bubble.io/u/jpatt)\
**Post date:** [August 26, 2016, 11:09pm UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/10 "2016-08-26T23:09:14Z")

</div>

Thanks so much, @NigelG ! I appreciate your help. I was able to finally figure it out.

---

<div class="post-metadata">

**Author:** ![rwodzironald](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@rwodzironald](https://forum.bubble.io/u/rwodzironald)\
**Post date:** [June 24, 2017, 5:06pm UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/11 "2017-06-24T17:06:49Z")

</div>

Hie jpatt. do u mind sharing how u got that done. i also need same functionality in my app. cheers

---

<div class="post-metadata">

**Author:** ![sxleung](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sxleung](https://forum.bubble.io/u/sxleung)\
**Post date:** [May 12, 2018, 10:08am UTC](https://forum.bubble.io/t/qr-code-reading-capability-within-bubble/4714/12 "2018-05-12T10:08:25Z")

</div>

Here are the steps I took to get it working.

1. Install the Bubble API Connector  
 ![step%201](https://us1.discourse-cdn.com/bubble/original/3X/b/b/bbef464a1d1e5c7e7f524f217da35471fc2765cc.png)
2. Add a new API and name it anything you want. I used QR Reader  
 ![step%202](https://us1.discourse-cdn.com/bubble/original/3X/6/f/6fda9b37969632c46341b2bc90d54fcdc2ed2b47.png)
3. Expand the API call and fill in the following

- use as ACTION
- datatype JSON
- GET value is: [http://api.qrserver.com/v1/read-qr-code/?fileurl=[]](http://api.qrserver.com/v1/read-qr-code/?fileurl=%5B%5D)
- PARAM value is [http://api.qrserver.com/v1/create-qr-code/?data=HelloWorld](http://api.qrserver.com/v1/create-qr-code/?data=HelloWorld) (this is needed to properly initialize the call)
- uncheck PRIVATE so you can pass a paramter  
 ![step%204](https://us1.discourse-cdn.com/bubble/original/3X/c/2/c2ea3794d1709df875b577bb790292631ef93725.png)

1. Click initialize and configure the return datatype  
 ![step%205](https://us1.discourse-cdn.com/bubble/original/3X/9/e/9ee50eb211f4699db11d43f9590252fc14c6ccfa.png)
2. Save

The call is now ready to be used in a workflow. To use it, you will need a picture uploader object. Then

1. Call the API action with the following parameter  

2. Then get the resulting data elements from the JSON object
