[Aerogear-users] Using Aerogear PushPlugin with Phonegap Build

Erik Jan de Wit edewit at redhat.com
Fri Jul 17 09:54:41 EDT 2015


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

https://github.com/aerogear/aerogear-cordova-push/releases/tag/1.0.4

On Fri, Jul 17, 2015 at 3:24 PM, Fabio Turizo <fabio.turizo at 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 at 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 at gmail.com>
>> wrote:
>>
>>> Greetings Eric. I was wondering if you were able to check this issue and
>>> if there's an available solution
>>>
>>> El vie., 10 de jul. de 2015 a la(s) 9:12 a. m., Fabio Turizo <
>>> fabio.turizo at 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
>>>> <https://registry.npmjs.org/aerogear-cordova-push/2.0.2> npm http 200
>>>> https://registry.npmjs.org/aerogear-cordova-push/2.0.2
>>>> <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
>>>> <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
>>>> <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.0*
>>>>
>>>> I'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 at 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 at 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 at 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 at 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 at lists.jboss.org
>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Cheers,
>>>>>>>        Erik Jan
>>>>>>>  _______________________________________________
>>>>>>> Aerogear-users mailing list
>>>>>>> Aerogear-users at lists.jboss.org
>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Aerogear-users mailing list
>>>>>> Aerogear-users at lists.jboss.org
>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Cheers,
>>>>>        Erik Jan
>>>>>  _______________________________________________
>>>>> Aerogear-users mailing list
>>>>> Aerogear-users at lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users
>>>>>
>>>>
>>> _______________________________________________
>>> Aerogear-users mailing list
>>> Aerogear-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/aerogear-users
>>>
>>>
>>
>>
>> --
>> Cheers,
>>        Erik Jan
>>  _______________________________________________
>> Aerogear-users mailing list
>> Aerogear-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-users
>>
>
> _______________________________________________
> Aerogear-users mailing list
> Aerogear-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-users
>
>


-- 
Cheers,
       Erik Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150717/63731ea7/attachment-0001.html 


More information about the Aerogear-users mailing list