Skip to Content

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


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.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    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

    Add comment
    10|10000 characters needed characters exceeded