Page 1 of 1

open zxing/barcode scanner inside my page

Posted: Fri Mar 20, 2015 2:44 am
by M&M

This question seems to have been asked a few times. Is is possible that i can open the built-in barcode scanner inside a page which just had a header / footer. I want the scanner to open up in the content area. I believe this could be outside the scope of appery support but I think this question will be asked later again, by many others.

There are couple of reasons I want to open the barcode scanner in my page
1) I need to display some data when the scanning is going on - and this information I need to display in the header of the page

2) When I invoke the scanner in the current way, it opens up in fullscreen view making it appear as not really being a part of the current app.

So if there's anyone in support who can take a short while to come up with how to achieve this?

I believe there would be some changes made to the manifest and layout files.

Thanks,
M&M


open zxing/barcode scanner inside my page

Posted: Wed Mar 25, 2015 2:42 am
by Yurii Orishchuk

Hi M&M,

Unfortunatly barcode scaner is a native device feature. It implemented with following phonegap plugin: https://github.com/phonegap-build/Bar...

As i can see this plugin does not supports passing image information with some source with what you can populate image component. To see this source on the page. Also it's not available to run scan processing in "background". Thus you can not use this plugin for this goal.

Only way to do it is: find needed cordova plugin, or write it your self.

Regards.


open zxing/barcode scanner inside my page

Posted: Wed Mar 25, 2015 3:12 am
by M&M

hi Yurii,

Ok I understand. Thanks for the information.

Cheers,
M&M