Closed RonaldPK closed 11 years ago
Cordova loads all plugin scripts automatically. The scripts to be loaded are listed in cordova_plugins.js
.
After you have added the plugin to your project through the CLI, the following lines should be added to this file:
{
"file": "plugins/de.appplant.cordova.plugin.badge/www/badge.js",
"id": "de.appplant.cordova.plugin.badge.Badge",
"clobbers": [
"plugin.badge"
]
}
I have removed the plugin and added again. It works as before.
cordova plugin rm de.appplant.cordova.plugin.badge
cordova plugin add https://github.com/katzer/cordova-plugin-badge.git
Maybe you haven't added the plugin in the right way?
Turns out I made a typo in a custom method in badge.js... Sorry for bugging you, very embarrassing.
Thank you for updating the plugin to Cordova 3!
Somehow badge.js doesn't load, so I can't access its methods. But I can run something like
cordova.exec(null, null, 'Badge', 'setBadge', [3])
directly in my script.Any idea what might be wrong?