Software Archive
Read-only legacy content

Build Failing on Android with Push Plugin

Nick_B_2
Beginner
1,655 Views

My build keeps failing when I add the third party push plugin (https://github.com/phonegap-build/PushPlugin.git)? Some help could really be appreciated. I have tried using several different releases of the plugin and it still fails every time. I am trying to build for Android with Crosswalk.

 

0 Kudos
12 Replies
Anusha_M_Intel1
Employee
1,656 Views

I vaguely remember coming across this issue before and I think the solution was to include it as a local plugin. Could you download it to your project directory and reference that plugin as a local plugin following the instructions here: https://software.intel.com/en-us/xdk/docs/adding-third-party-plugins-to-your-xdk-cordova-app ? Try the 2.4.0 version. 

0 Kudos
Nick_B_2
Beginner
1,656 Views

Thanks very much for your quick reply! Okay I will try that. When I include the local plugin it first has to be copied into the local www directory right or do I put it in the plugins directory? 

0 Kudos
Anusha_M_Intel1
Employee
1,656 Views

Importing a third-party plugin that resides in a local directory requires that the plugin be located within your project's "source directory." Normally this source directory is named "www" and is located inside your application's project directory (see the Project Info in the Projects tab for the name and location of your project's source directory). A local plugin will be included with the source bundle that is uploaded to the cloud-based build server; the entire contents of your project's "source directory" are included as part of that uploaded bundle.

WWW directory.

0 Kudos
Roman_B_
Beginner
1,656 Views

Hi,

I have the same problem. My app fail building for Android if I include Push Plugin (https://github.com/phonegap-build/PushPlugin.git). I tried include it locally in WWW folder and nothing. The app builds for iOS but not Android Crosswalk or regular Android.

I'm using CLI 5.1.1 (I cant downgrade) and Intel XDK version 2548. 

Can someone help me and advice me how to fix this issue ?

Kindly

0 Kudos
Anusha_M_Intel1
Employee
1,656 Views

Hi Roman,

It looks like that plugin is deprecated. Could you try using this one instead (https://github.com/phonegap/phonegap-plugin-push)? If you are doing a local import, put the plugin anywhere outside the 'plugins' or 'WWW' directory and point to that. I know this is contradictory to what I posted in reply to Nick. But the latest version of XDK creates a local copy of your plugins in the 'plugins' directory that gets pushed to the build server with your source files. If you have the local copy in WWW, it will then create a duplicate in your 'plugins' directory making the final project size unnecessarily bigger. 

If you have a build log, we can confirm if that plugin actually got installed or not.

0 Kudos
Roman_B_
Beginner
1,656 Views

Hey,

Thanks for getting back to me. I am aware of this plugin being depricated I was just hoping to make it work cos I have bunch of existing code that I wanted to use and that worked before (about 2 updates before current one).

However I tried to use the new version and even bring it down locally and put outsise 'www' or 'plugins' directory and app (simply app, that doesnt do anything, made it for test) fail to build in cloud. In attachments please see my log.

Thank you and I really appreciate any help with this. It must be something simple..

Kindly

0 Kudos
gabry_p_
Beginner
1,656 Views

Roman B. wrote:

Hey,

Thanks for getting back to me. I am aware of this plugin being depricated I was just hoping to make it work cos I have bunch of existing code that I wanted to use and that worked before (about 2 updates before current one).

However I tried to use the new version and even bring it down locally and put outsise 'www' or 'plugins' directory and app (simply app, that doesnt do anything, made it for test) fail to build in cloud. In attachments please see my log.

Thank you and I really appreciate any help with this. It must be something simple..

Kindly

Same problem for me

0 Kudos
Fab_V_
New Contributor I
1,656 Views

same problem :

not possible to build android when using Push Plugin et cordova 5.1.1.

I tried all possible solutions, the new push plugin repository, change the jar, etc...

It is a problem that force me to stay on cordova 4.1.2.

How to fix it without using pushwoosh ?

0 Kudos
Mike_C_4
New Contributor I
1,656 Views

@fab v

try downloading 1.2.2 instead it has the same updates as 1.3 but does not use

gradle and that worked for  me

 

hope this helps

 

0 Kudos
Roman_B_
Beginner
1,656 Views

I confirm, what @Mike C. said. This makes app build for android that have push plugin included (version 1.2.3 from link prowided by Mike C.). I did not test if the plugin actually work yet. If anyone know, please let us all know (dunno when I get round to test)

Kindly

0 Kudos
PaulF_IntelCorp
Employee
1,656 Views

For CLI 5 give this a try:

  • add "third-party plugin"
  • choose cordova registry
  • phonegap-plugin-push
  • version 1.2.3

With CLI 4 give this a try:

0 Kudos
Roman_B_
Beginner
1,656 Views

Thanks @Paul F. I confirm it works. Tested on with Android 5.1, iOS7 and iOS 9.0.3

0 Kudos
Reply