flowUI, QR code scanner iPhone and Android mobile

Hi,

this is more a Java then JMIX question:
I can open the mobile camera using the fileupload,
grab the photo and use zxing to detect a scanned QR code.
Works fine,
but for that the photo needs to uploaded first, which takes some time.

Question:
Is there a way to use the camera to scan a QR code without taking a photo?
I mean, running the JMIX app, click on a button and use the mobile camera to scan the code.
Like standard Barcode Scanners are doing it.
Like opening the camera outside any app, where a code will be detected automatically.

KR
Roland

Hello,

Are you planning to redirect to a page in the Jmix application using a QR code? Or open the mobile device camera from the Jmix application?

Regards,
Nikita

Hi,
I implemented both ways.
The prefered way would be to open the camera from inside the app.
But then the standard code detection is not avsilable using an iphone.
So I need to take a photo, upload it and detect the code then.
That works, but the upload might take too long with a poor connection.
I am looking for a code detection like available when open the camera outside the app.
KR
Roland

1 Like

Vaadin has a solution to your problem, you can try integrating it into Jmix or get inspired by the solution and make your own.

QR code scanner:

Regards,
Nikita

2 Likes

I tried that, first with the actual version… app did not start…
then with the version for Vaadin 1.4… looks like it changed all the Vaadin classes in the app…
App is starting, but the login screen never pops up… only the blue bar…
could not set it back…
now I try to get the backup from yesterday from bitbucket :frowning:

I will stay with my own solution which is stable :slight_smile: