QR Scanner using Javascript-Python

Hi all!

I customized two Javascript QR scanners available in github and got them working in client code:

https://anvil.works/build#clone:T7PCB5U4I5SGLNNH=JXX4QYWZLLFODU73BYBNZWOS

There is an explanatory note inside the app.

Try it on mobile phone. The app is for Android by using the last camera of phone. I read (but have not tested) that for iPhone the first camera should be used.

Redjo

6 Likes

Looks good.

Tested on iPhone, works as expected :+1:

1 Like

Thank you, this is great! It works on several Android and iPhone models I tried it on.

And just so it works both ways, here’s an Anvil QR Code generator:

https://anvil.works/build#clone:JUK6FJ2BDVGAQTST=7TIMXS2ERUHDILBE6JGTN55P

4 Likes

Hi there

This looks great, except I’m getting the following error on both safari and firefox on iphone:

NotAllowedError : The request is not allowed by the user agent or the platform in the current context.

Any ideas?

Dear Redjo,

Works fine here. Thank you for that.

Just in case somebody else was also looking for the relevant code as an example on how to include JS: You will find it in the Custom HTML of the form! For example: Form: _Professional, then self/properties/ Custom HTML/ then click Edit. May be that was obvious to everybody but me…