Skip to Content

Modifying cordova bar code scanner plugin interface in sap ui5 for andriod

Sep 21, 2017 at 11:03 AM


avatar image


i am using cordova.plugins.barcodeScanner.scan to capture QR Code data in sap ui5 application. In desktop, when the plugin is called, its opens a dialog, which has dialog header and a cancel button in the footer. This dialog is generated at runtime. I want to modify its Title and button text. How can i change them?

Below is the snapshot of the dialog:

I want to Change dialog title to "Scan a QR Code" and Cancel button text to another language.

Below screenshot is taken in Android mobile(7.1.1):

Is it possible to provide blue square at the edges to define qr code scanning area?

Can i add text on the top of this camera view?

I want to show error message on camera view itself - for example if the scanned qr code is not correct then there should be a message displayed from cordova and that message would be defined by me and after showing error message the camera must be kept in scan mode and it should not get closed. I tried handling it via sap ui5 message control to display message, but then the camera view gets closed.

Please suggest how to carry out above changes for andriod mobile and windows desktop.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

PRASHANT SINGH Sep 22, 2017 at 06:51 AM

Hi Saurabh,

how you have opened cordova.plugins.barcodescanners.scan() in dialog?

could you please share the code so i can get help because i am not able to open open inside dialog.

so kindly do needful.


Prashant Singh

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Prashant,

The dialog is coming either from cordova plugin itself or from web IDE cordova emulator, its not there in application code.