Software Archive
Read-only legacy content
17060 Discussions

Push Notifications - Urban Airship PhoneGap plugin

Rick_P_1
Beginner
432 Views

I've installed this plugin locally and configured app settings based on documentation.  When I go to build I get an error message. (See below).

I used the ID from the plugin.xml but not sure if thats the correct one.  Has anyone else had success using this plugin?  What other options for push notifications are there now that AppMobi is deprecated?

  • Building a Cordova 3.5 application.
  • The application name is "NexusMedi 3.1.3"
  • The package name is "com.magnoliawebdevelopment.nexusmeding313"
  • Will use the provisioning profile for "production"
  • Plugin "com.intel.xdk.cache" (1.0.0) installed.
  • Plugin "com.intel.xdk.device" (1.0.9) installed.
  • Plugin "org.apache.cordova.device" (0.2.9) installed.
  • Plugin "org.apache.cordova.dialogs" (0.2.6) installed.
  • Plugin "org.apache.cordova.vibration" (0.3.8) installed.
  • Plugin "org.apache.cordova.splashscreen" (0.3.0) installed.
  • Plugin "com.intel.xdk.notification" (1.0.0) installed.
  • Plugin "com.intel.xdk.file" (1.0.1) installed.
  • Plugin "com.intel.xdk.camera" (1.0.5) installed.
  • Error: Plugin "urbanairship-cordova" (3.1.3) failed to install.
  •  
0 Kudos
1 Reply
PaulF_IntelCorp
Employee
432 Views

According to the Urban Airship plugin README.md file, version 3.1.3 required Android Cordova 4.0.0 or higher. Unfortunately, the Apache Cordova project recently changed the way they specify version numbers, so this is now a very confusing point. Our build system currently builds using Cordova CLI 4.1.2, which uses Android Cordova 3.6.4, not 4.x as you might think based on the versioning...

The 3.1.2 version of that plugin states it is good for Cordova 3.4+, so hopefully, that will resolve the issue. You need to specify the git ref label to tell the build system to include that version of the plugin, like this:

https://github.com/urbanairship/phonegap-ua-push.git#3.1.2

See the "Advanced Plugin Options" section of this doc for more details: http://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface

See the "Tags" list in the "branch:master" pulldown on the plugin's github repo (https://github.com/urbanairship/phonegap-ua-push.git) to see what other tags are available. Select a specific tag to see the REAMDE and source files associated with that repo tag.

0 Kudos
Reply