2. $ cordova -v
5.1.1
- The import android.support cannot be resolved
- The import org.jboss.aerogear.android cannot be resolved
These instructions should work regardless of the platform:Or do you have some specific error?On Thu, Jul 23, 2015 at 7:12 PM, Rodrigo Del Canto <delkant@gmail.com> wrote:Hello,is there a place where I can follow instructions to make aerogear-cordova-push to work with android ?On Fri, Jul 17, 2015 at 6:46 PM, Erik Jan de Wit <edewit@redhat.com> wrote:the newer (2.x) version introduces some new functionality like metrics and is compatible with the newer UPSOn Fri, Jul 17, 2015 at 4:16 PM, Fabio Turizo <fabio.turizo@gmail.com> wrote:Ok, tested it with that version and passed the build on all platforms. A question, this version has the same funcionality as v2.0.2 and only differs in the build system used for android?El vie., 17 de jul. de 2015 a la(s) 8:54 a. m., Erik Jan de Wit <edewit@redhat.com> escribió:No, I mean the aerogear-cordova-push plugin there is also a 1.0.4 version that doesn't depend on gradle and will work with phonegap_______________________________________________On Fri, Jul 17, 2015 at 3:24 PM, Fabio Turizo <fabio.turizo@gmail.com> wrote:When you refer that i could use version 1.0.4 of the plugin, are you referring to the Promise Plugin? In that case do I have to specify this dependency in the config.xml?El vie., 17 de jul. de 2015 a la(s) 3:43 a. m., Erik Jan de Wit <edewit@redhat.com> escribió:That is because the new android library is using gradle and that is only supported in android platform 4. You could use version 1.0.4 of the plugin depending on what version of aerogear you are using._______________________________________________On Wed, Jul 15, 2015 at 4:31 PM, Fabio Turizo <fabio.turizo@gmail.com> wrote:Greetings Eric. I was wondering if you were able to check this issue and if there's an available solutionEl vie., 10 de jul. de 2015 a la(s) 9:12 a. m., Fabio Turizo <fabio.turizo@gmail.com> escribió:Many thanks for your assistance! I tested it with version 2.0.2 and the build was succesful for iOS, but in android this error comes by:Error - Plugin error (you probably need to remove plugin files from your app):npm http GET https://registry.npmjs.org/aerogear-cordova-push/2.0.2 npm http 200 https://registry.npmjs.org/aerogear-cordova-push/2.0.2
npm http GET https://registry.npmjs.org/aerogear-cordova-push/-/aerogear-cordova-push-2.0.2.tgz
npm http 200 https://registry.npmjs.org/aerogear-cordova-push/-/aerogear-cordova-push-2.0.2.tgz
Failed to install 'org.jboss.aerogear.cordova.push':CordovaError: Plugin doesn't support this project's cordova-android version. cordova-android: 3.7.1, failed version requirement: >=4.0.0 at checkEngines (/home/ec2-user/.npm/lib/node_modules/plugman-npm/node_modules/cordova-lib/src/plugman/install.js:116:29) at /home/ec2-user/.npm/lib/node_modules/plugman-npm/node_modules/cordova-lib/src/plugman/install.js:289:16 at _fulfilled (/home/ec2-user/.npm/lib/node_modules/plugman-npm/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/home/ec2-user/.npm/lib/node_modules/plugman-npm/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/home/ec2-user/.npm/lib/node_modules/plugman-npm/node_modules/q/q.js:749:13) at /home/ec2-user/.npm/lib/node_modules/plugman-npm/node_modules/q/q.js:557:44 at flush (/home/ec2-user/.npm/lib/node_modules/plugman-npm/node_modules/q/q.js:108:17) at process._tickCallback (node.js:442:13) Plugin doesn't support this project's cordova-android version. cordova-android: 3.7.1, failed version requirement: >=4.0.0I'd greatly appreciate if you can fix this bug as well.Again, many thanks for your help.El vie., 10 de jul. de 2015 a la(s) 3:56 a. m., Erik Jan de Wit <edewit@redhat.com> escribió:Hi Fabio,I meant to say that you can upgrade your account to get 3rd party plugins, but it seems that you already have that. What you have know is an error in the dependency of the push plugin all the plugins are moving to npm and changing there id to match npm. There is a mapping function, but it seems that the promise plugin is not using that. This bug is fixed in master I'm doing a release now version 2.0.2 will be available when you read this mail_______________________________________________On Thu, Jul 9, 2015 at 10:55 PM, Fabio Turizo <fabio.turizo@gmail.com> wrote:Well, i'm not exactly sure if i could pay them to put the plugin in the platform. Looking at the site nothings comes up abput this.For the moment i tried reading their documentation and Phonegap Build supports 3rd party plugins by specifying the source of the plugin as npm in the config.xml declaration:<gap:plugin name="aerogear-cordova-push" source="npm" version="2.0.1"/>This works well as Phonegap Build detects this plugin when the application is uploaded, but the build fails for both iOS and Android with this error:Error - Plugin error (you probably need to remove plugin files from your app): npm http GET https://registry.npmjs.org/aerogear-cordova-push/2.0.1 npm http 200 https://registry.npmjs.org/aerogear-cordova-push/2.0.1 npm http GET https://registry.npmjs.org/aerogear-cordova-push/-/aerogear-cordova-push-2.0.1.tgz npm http 200 https://registry.npmjs.org/aerogear-cordova-push/-/aerogear-cordova-push-2.0.1.tgz Failed to install 'org.jboss.aerogear.cordova.push':Error: Expected plugin to have ID "com.vladstirbu.cordova.promise" but got "es6-promise-plugin". at checkID (/usr/local/lib/node_modules/plugman-npm/node_modules/cordova-lib/src/plugman/fetch.js:164:15) at /usr/local/lib/node_modules/plugman-npm/node_modules/cordova-lib/src/plugman/fetch.js:148:9 at _fulfilled (/usr/local/lib/node_modules/plugman-npm/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/usr/local/lib/node_modules/plugman-npm/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/plugman-npm/node_modules/q/q.js:749:13) at /usr/local/lib/node_modules/plugman-npm/node_modules/q/q.js:557:44 at flush (/usr/local/lib/node_modules/plugman-npm/node_modules/q/q.js:108:17) at process._tickCallback (node.js:419:13) Expected plugin to have ID "com.vladstirbu.cordova.promise" but got "es6-promise-plugin"By looking in the npm repositories effectively i see that there is a Promise plugin of ID es6-promise-plugin but it seems the dependency for the plugin is declared as com.vladstirbu.cordova.promise so the build fails.Any idea is this could be fixed and how?El jue., 9 de jul. de 2015 a la(s) 12:54 a. m., Erik Jan de Wit <edewit@redhat.com> escribió:I've tried to get our plugin into Phonegap build, but it never got accepted nor declined. But if you pay them I think you are able to use any plugin you want.On Thu, Jul 9, 2015 at 1:35 AM, Fabio Turizo <fabio.turizo@gmail.com> wrote:I noticed that there's no equivalent for the aerogear cordova push plugin in the Phonegap Build plugin repository. Is there any way to use it with phonegap build? It'd be a waste if it's not possible.______________________________________________________________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
--Cheers,Erik Jan
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
--Cheers,Erik Jan
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
--Cheers,Erik Jan
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
--Cheers,Erik Jan
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
--Cheers,Erik Jan
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
--Cheers,Erik Jan
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users