I'm developing an iOS app using cordova(1.9). I've some custom iOS plugins to make my app do some stuff. Now I'm facing a problem, sometime when I call :
cordova.exec(function(){},function(){},'MyPlugin','myMethod',['parameter']);
The app throws this exception :
TypeError: 'undefined' is not a function (evaluating 'cordova.exec(function(){},function(){},'WDMessageDispatcher','sendMessage',['showCategoriesList'])')
The Plugin was developed following the documentation and it works but not everytime. I don't really understand why. Someone else experienced the same error?
cordova.exec
can be invoked after
deviceReady()
has fired.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With