Hi, does anyone know if it is possible to generate QR codes in Create?
I see that there are a number of js libraries that solve this, but I don’t know how to implement them in Create.
Hi, does anyone know if it is possible to generate QR codes in Create?
I see that there are a number of js libraries that solve this, but I don’t know how to implement them in Create.
There is a service in the Appfarm universe that will generate a QR code on the fly for you. With a specially crafted URL, you can use the image component to show it.
Example: https://resources.dev.appfarm.io/qr/v1?url=https://appfarm.io
It is recommended to use encodeURIComponent() to encode the url-parameter:
https://resources.dev.appfarm.io/qr/v1?url=https%3A%2F%2Fappfarm.io
Note: This QR code generator is for hyperlinks only. If you need to embed some other data, you need to use something else.