Cordova plugin ListPicker error on Ripple emulator

旧街凉风 提交于 2019-12-18 09:29:19

问题


I'm using Cordova within Visual Studio and added the ListView plugin. The plugin was added successfully via the config.xml editor screen

When I call window.plugins.listpicker.showPicker I can trace all the way to cordova.exec(_callback, _error_callback, 'ListPicker', 'showPicker', [config]) then Ripple displays the "I Haz Cheeseburger" error on ListPicker.showPicker We seem to be missing some stuff :(

I have verified that the plugin is listed in the plugins folder with other plugins that I am using


回答1:


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.



来源:https://stackoverflow.com/questions/34646749/cordova-plugin-listpicker-error-on-ripple-emulator

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