简体   繁体   English

phonegap-plugin-barcodescanner 不支持 PWA,显示 Cordova not available

[英]phonegap-plugin-barcodescanner not support PWA, it's shows Cordova not available

please anyone tell me how to use this plugin for web. i try many plugins but not work for me or on my scenario.请任何人告诉我如何将此插件用于 web。我尝试了很多插件但不适合我或我的场景。 phonegap-plugin-barcodescanner is the perfect plugin, worked on native( android and IOS) but not work on Web. error is "Cordova not available" phonegap-plugin-barcodescanner 是完美的插件,适用于本机(android 和 IOS)但不适用于 Web。错误是“Cordova 不可用”

After build web directory you need execute "npx cap sync web" command, how implement web in Capacitor构建 web 目录后,您需要执行“npx cap sync web”命令, 如何在 Capacitor 中实现 web

Event though your error is in Cordova and not is Capacitor, maybe the plugin is not correctly implemented, please read how to implement in Capacitor barcode-scanner尽管您的错误是 Cordova 而不是 Capacitor,但插件可能未正确实现,请阅读 Capacitor barcode-scanner中的实现方法

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

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