windows phone 8 - Error::Plugin not allowed in config.xml - Cordova/Phonegap -
i trying create first plugin in wp8, getting error
plugin not allowed in config.xml.
what doing wrong?
in config.xml
<feature name="echo"> <param name="wp-package" value="com.example.echo.plugins.echo"/> </feature>
in echo.js
window.echo = function (str, callback) { cordova.exec(callback, function (err) { callback('nothing echo.'); }, "com.example.echo.plugins.echo", "echo", [str]); };
in echo.cs
using wpcordovaclasslib.cordova; using wpcordovaclasslib.cordova.commands; using wpcordovaclasslib.cordova.json; namespace com.example.echo.plugins { class echo : basecommand { public void echo(string options) { ...
in echo.js
only class name has called , not total package. below:
window.echo = function (str, callback) { cordova.exec(callback, function (err) { callback('nothing echo.'); }, "echo", "echo", [str]); };
cordova windows-phone-8 phonegap-plugins
No comments:
Post a Comment