Cordova plugin ListPicker error on Ripple emulator

允我心安 提交于 2019-11-29 16:20:15

Short Version: You did not do anything wrong, test your app on a actual device or an emulator and it should work fine.


Long Version:

Caution: Ripple doesn’t provide a complete simulation of Cordova APIs or native device capabilities... You can achieve this by testing on actual devices or emulators.

Taken from here
Ripple is just a simulator: It simulates some of the capabilities of a real device, not all of them. It seems you can test the Cordova core plugins in Ripple, but there is pretty much no support for custom plugins.
I created an empty project Cordova app and just pasted the sample code from the link you provided: In Ripple I get the error you described, while everything works fine, if I run the app on my android device.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!