简体   繁体   English

SAP Fiori 客户端初始化 Cordova JSON 错误时出错

[英]SAP Fiori client Error initializing Cordova JSON error

I've developped a SAPUI5 app using a barcode scanner using the following code :我使用以下代码使用条形码扫描仪开发了 SAPUI5 应用程序:

 <ndc:BarcodeScannerButton scanSuccess="handleBarcodeScannerSuccess" />

Once I launch the SAP Fiori client app I get an "Error initializing Cordova JSON error".启动 SAP Fiori 客户端应用程序后,我收到“初始化 Cordova JSON 错误时出错”。 Consequence : the scanner is not recognize.结果:扫描仪无法识别。

How can I bypass this message and make work the Scanner ?如何绕过此消息并使扫描仪工作?

EDIT : the error appears when the sap fiori client is redirected to the SSO page.编辑:当 sap fiori 客户端重定向到 SSO 页面时出现错误。

PS: Weird thing it works on my iPhone. PS:奇怪的是它适用于我的 iPhone。

Found a way to make Cordova work.找到了让 Cordova 工作的方法。 Not the way I wanted but it works.不是我想要的方式,但它有效。

I copied pasted cordova in my Fiori app and the files : - BarcodeScannerProxy.js - cordova_plugins.js - llqrcode.js - qrcode.min.js - quagga.min.js - barcodescanner.js我在我的 Fiori 应用程序和文件中复制了粘贴的cordova:- BarcodeScannerProxy.js-cordova_plugins.js-llqrcode.js-qrcode.min.js-quagga.min.js-barcodescanner.js

And then I Launched the barcode scan with : cordova.plugins.barcodeScanner.scan();然后我启动了条码扫描:cordova.plugins.barcodeScanner.scan();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM