Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Phonegap Build Issues for 1.4.X #417

Closed
jamesbiv opened this issue Dec 13, 2015 · 6 comments
Closed

Phonegap Build Issues for 1.4.X #417

jamesbiv opened this issue Dec 13, 2015 · 6 comments

Comments

@jamesbiv
Copy link

Hi!

I had issued this post about a week ago on the Phonegap Build community forum. The feedback I received over there was good, however, didn't overall solve my problem.

Please see the link

http://community.phonegap.com/nitobi/topics/error-from-pushplugin-1-4-x-on-android

If anyone here uses PGB and can get PushPlugin to work past version 1.2.3 and knows how, and would let me know, that would be great :)

Thanks.

P.S Developers, This module is truly brilliant. Even version 1.2.3 is great. I had spent many hours tirelessly working on Push integration in the past but the latest versions of this module takes the pain out of it. Thanks so much for that!

@fredgalvao
Copy link
Collaborator

After Phonegap Build stated that gradle builds were stabilized and supported, I don't there's anything specific you need to do to make it work.

A detail though: version 1.2.3 didn't use gradle to build, so you would need to go back to ant builds on PGB if you wanted to use that version.

Other than that, I'd ask you to post the complete output of the compilation process for android, maybe there's some hidden detail there that I didn't see at the link you posted.

Also, are you able to compile it yourself locally successfully?

@jamesbiv
Copy link
Author

Thanks Fredgalvao

The issue looks like it has been resolved over the past few days. The Phonegap Build team may have responded to it as an issue. Whats more Gradle is not default as far as I can see which may cause confusion.

<preference name="android-build-tool" value="gradle" />

Is required in config.xml as Phonegap Build seems to have reverted back to ant as default.

I'm going to implement some of the new features found in the Plugin and if it seems like I have further issues I will follow your advice on building locally and send further details. Thanks!

Regards James

@macdonst macdonst added the docs label Dec 13, 2015
@macdonst macdonst added this to the Release 1.5.0 milestone Dec 13, 2015
@macdonst
Copy link
Member

@offyourleash we'll add something to the docs about specifying gradle as the build tool and I'll mention it to the PGB team.

@jamesbiv
Copy link
Author

Thanks Simon!

A little more detail on the issue, which i'll raise over at the PGB as well is that the debug output shows as follows.

Fetching plugin "[email protected]" via npm
Installing "phonegap-plugin-push" for android

Issued with

<plugin name="phonegap-plugin-push" spec="1.4.5" />

Although I feel that source=npm should still work. However, PGB has recently changed conventions on this over to using spec=.

What the main problem is the install output. With all these settings put in place. IE Selecting version 1.4.X and seeing the debug output 1.4.X version being compiled. PGB's installed plugin screen still reflects the following screenshot (which could be isolated to me but I felt worth publishing just in case).

screenshot-pushplugin

So you basically you just have to ignore that output.

Thanks!

@jessemonroy650
Copy link

@offyourleash
your confusion with using the plugin configuration is not new. The blogger even acknowledge as much.

This is the confusing blog:
http://phonegap.com/blog/2015/11/19/config_xml_changes_part_two/

Here is the less confusing documentation:
http://docs.build.phonegap.com/en_US/configuring_plugins.md.html#_including_a_plugin_in_your_project

@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

4 participants