Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Pluging installation
-
Hello,
I’m a new user here in monaca, i have read all the documentation about monaca to import Cordova CLI projects from Telerik, all work fine. but i need to install a pluging named (PushNotifications) of cordova, (https://github.com/Pushwoosh/pushwoosh-phonegap-plugin), Could someone help me to install that pluging and configurate?
Thank you!
-
@carlosflores What kind of issue do you have when installing this plugin? If you are using Cordova 7.1 in your project, you will need to make some configuration in the
config.xml
file. For more information regarding this issue, please refer to Support for Cordova-Android 7.
-
@khemry I installed the plugin with the support of “Import Cordova Plugin” the url was https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git, I have configured the following lines in the config.xml file
<plugin name = “pushwoosh-cordova-plugin” version = “7.5.0” />
<feature name = “PushNotification”>
<param name = “android-package” value = “pushwoosh-cordova-plugin” />
</ feature>And in my code I use the following “plugins.pushNotification.onDeviceReady”
But I get the following error “onDeviceReady does not exist”
Do I have to configure something other than the config.xml?
How can i debug an external plugins?
when i build the APP for android i got the next log
Discovered plugin “pushwoosh-cordova-plugin” in config.xml. Adding it to the project
Fetching plugin “https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git” via git clone
Repository “https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git” checked out to git ref “master”.
Installing “pushwoosh-cordova-plugin” for android
Subproject Path: CordovaLib
Adding pushwoosh-cordova-plugin to package.json
Saved plugin info for “pushwoosh-cordova-plugin” to config.xml
-
@carlosflores So I’ve just tried to import the plugin myself. You don’t need any configuration regarding this plugin in
config.xml
file. Then, addcordova-plugin-enable-multidex
plugin to your project. This way the build will succeed.
-
This post is deleted!