[英]PWA with ionic and capacitor, native plugin complains cordova not available, on browser and device
I am developing a PWA with ionic 4.12 and Capacitor, I would like to use the native plugin ImagePicker; 我正在使用离子4.12和电容器开发PWA,我想使用本地插件ImagePicker; I followed this guide https://ionicframework.com/docs/native/image-picker , when I run imagePicker.getPicture, get this error "cordova not available" both on browser and on the device, I do not know how to make working the plugin, thanks in advance.
我遵循了本指南https://ionicframework.com/docs/native/image-picker ,当我运行imagePicker.getPicture时,在浏览器和设备上都收到此错误“ cordova不可用”,我不知道该如何制作工作插件,在此先感谢。
Cordova plugins are not supported on PWAs yet PWA尚不支持Cordova插件
https://github.com/ionic-team/capacitor/issues/769 https://github.com/ionic-team/capacitor/issues/769
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.