cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Zxing library loading issue pop up while using ndc barcode - UI5

adamparker
Explorer
0 Likes
1,949

Hi Folks,

We are facing the NDC library loading issue in our custom UI5 application. When we checked the same NDC barcode scanner in SAP UI5 - SDK, we also got the same library loading issue. I am attaching the below screenshot and URL for reference. Do anyone have idea/suggestions regarding this issue are welcome and appreciated.

URL:

https://sapui5.hana.ondemand.com/#/entity/sap.ndc.BarcodeScannerButton/sample/sap.ndc.sample.Barcode...

Regards,

Jeswin Noel Raj.

Accepted Solutions (0)

Answers (2)

Answers (2)

Marian_Zeis
Active Contributor

Works for me

adamparker
Explorer
0 Likes

Hi Marian,

Thanks for the quick response.

Even for me it's working fine, but the problem is initially a pop-up showing a busy indicator with some test related to ZXING library like "Loading zxing-cpp library and opencv library from server" and then it is getting disappears, after that scanner is opening and its working fine. Earlier we didn't face any pop like this in production. That is the issue am addressing with the highlighted screenshot. Am looking for solution to neglect that pop-up loading with busy indicator.

Marian_Zeis
Active Contributor
0 Likes

The popup was introduced because the libraries are loaded ansynchronously and this may take longer.
To inform the user that the libraries will be loaded after pressing the button, this popup appears.
It first appeared in 1.109.0

https://sapui5.hana.ondemand.com/resources/sap/ndc/BarcodeScanner-dbg.js

But i agree that this is not the best UX.
It may be better to open up this popup when the user clicks on the button, not on opening up the app

adamparker
Explorer
0 Likes

Thanks, Marian for the suggestion.

Now I am calling that barcode scanner library once when I click on the barcode scanner button in the UI, but for the first time when I click on the barcode button the camera is not opening, from the second instance onwards the camera is loading.