QR Code or Barcode Generation But Different

Hi guys,

Thanks for stopping by. So I’m not looking to create a standalone generation app, so my question is:

Does Thunkable have the ability to auto generate a QR Code or barcode that is unique to each user, and can be created during the signup process that will populate and be viewable in the customer’s account once it’s created?

I also want this code to remain with the user and the generator to never reuse the same code once generated and attached to a user

Take a look at the first solutions HERE

For unique qr code, which data you want to save in the code ? Who can scan it? When you create the code you have to verify if it exists and generate a new one again

I don’t think this can be done from within Thunkable using the existing components. But you could definitely use an API to create the QR codes and retrieve them in the app or in a data source that the app has access to.

To make the QR codes unique, I would use the Firebase Sign Up/Sign In blocks in Thunkable which generates a unique user ID. And then I would send that to the QR code generator either as is or with extra characters (e.g. MyAppName_UID_34591023459).

In fact, here’s that same text as a QR Code I generated with the url https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=MyAppName_UID_34591023459 using the free QR Code generator at https://goqr.me/api:

image

Thanks for the reply Goldking. So the info I want to save should be automatically created from the generator. What I want to create is membership IDs. Once a membership ID is created, I want to attach it to the individual who created the account and they can access it to be scanned say at a grocery store or gas station for example.

You mentioned having the generator verify the existing codes, is there an article or video on how to do this? Thanks.

Hi Tatiang,

Thanks for the reply. I like the idea of simply using the ID created by Firebase. Is there an article or video on how to implement this feature? Thanks.

I’m not sure if there is but it’s just basically joining the string “https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=” with whatever unique value you want. So you can use the join block in the Text drawer to join that string with the green userId block explained here: https://docs.thunkable.com/v/snap-to-place/sign-in-1.

You’ll need to learn about Web APIs and Thunkable if you’re not familiar. I explain a lot of that – probably much more than you need – here: API JSON Tutorial (Video).

As @tatiang said Firebase provides a valid and unique ID :+1:t2:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.