From kelvin at qantel.com Wed Jul 1 02:04:02 2015 From: kelvin at qantel.com (Kelvin Lunsford) Date: Wed, 1 Jul 2015 06:04:02 +0000 Subject: [Aerogear-users] UPS load on startup In-Reply-To: References: <557EA907.3090707@udl.cat> <1a6c356e360541ccb02e88b7b2a92875@stantz.qantel.com> Message-ID: <4bfd1411bed94d049772a82d813a21bb@stantz.qantel.com> Thanks for the help Matt, I used curl and discovered the startup failure only occurred when UPS was accessed from outside our firewall. It was a proxy configuration problem. Or at least I was able to avoid the problem with some changes to our reverse proxy. By turning on the RequestDumpingHandler in Wildfly I was able to see what was happening. Turns out the first time UPS is accessed after startup Wildfly does an http access to get an aerogear token. Accessing the Aerogear console also loaded the token, which is why everything worked fine after the console was accessed. Wildfly seems to be using the contents of the 'host' header in the original request to set the host and port used to access /auth/realms/aerogear. The original 'host' header value did not include a port which caused port 80 to be used , and the auth URL was not accessible with those values. I was able to configure our proxy to set the 'host' header of the proxied requests to a host:port value used by wildfly, and everything works great now. This will probably work differently when Keycloak and UPS are separated. Bridges to cross. Again, thanks for your help. - Kelvin From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf Sent: Wednesday, June 17, 2015 2:07 AM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] UPS load on startup Hi Kevin, thanks for the feedback! Here is what I did to reproduce your issue (w/o success): * I have deployed UPS 1.0.2 into a (full profile) WF 8.2. * start the server (reset the admin password) * create app and (dummy) variant (for Android), and noted the variantID:secret * shutdown WF * start WF * did a curl agains the registration endpoint (got a 200) * logged in, and seeing one device is registered. Here is the CURL, I used (note the -u value ;-)) curl -u "variantID:secret" -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"deviceToken" : "a152f21a-d327-4303-99d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1"}' http://127.0.0.1:8080/ag-push/rest/registry/device That worked fine. My question is: does _this_ also generate you the 404 error? Or is that something you are "just" seeing from the AeroGear Registration SDK? (e.g. for Android/iOS or Cordova). PS: the same 'test' passes with the 1.1.0-Final-SNAPSHOT build I did locally Thanks! Matthias On Wed, Jun 17, 2015 at 3:31 AM, Kelvin Lunsford > wrote: I tried to add UPS logging by following the instructions in the UPS user guide but couldn't get it working. This is what I see in the server.log file. ... 2015-06-16 15:49:52,284 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management 2015-06-16 15:49:52,284 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990 2015-06-16 15:49:52,284 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.0.Final "Tweek" started in 13573ms - Started 579 of 637 services (101 services are lazy, passive or on-demand) 2015-06-16 15:50:27,011 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /ag-push/rest/registry/device: java.lang.RuntimeException: Unable to resolve realm public key remotely, status = 404 at org.keycloak.adapters.AdapterDeploymentContext.resolveRealmKey(AdapterDeploymentContext.java:69) [keycloak-adapter-core-1.0.4.Final.jar:] at org.keycloak.adapters.AdapterDeploymentContext.resolveDeployment(AdapterDeploymentContext.java:55) [keycloak-adapter-core-1.0.4.Final.jar:] at org.keycloak.adapters.undertow.ServletKeycloakAuthMech.authenticate(ServletKeycloakAuthMech.java:54) [keycloak-undertow-adapter-1.0.4.Final.jar:] at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:281) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:298) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:268) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:131) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:106) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:54) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69) [keycloak-undertow-adapter-1.0.4.Final.jar:] at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69) [keycloak-undertow-adapter-1.0.4.Final.jar:] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_71] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_71] at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_71] The error occurs each time I try to do a registration after server restart, until I log into the UPS console, then the errors stop. - Kelvin ---------------------------------------------------------------------------------- From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf Sent: Monday, June 15, 2015 4:10 AM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] UPS load on startup Hi, yes, openshift gets susspended after 48 hours (I think) of inactivity - but I think your error is different to Kevin's Kevin any chance to get a log file / stack-trace from the 500 ? Is that just on Android/Cordova, or does that also reproduce w/ doing (test) registration w/ curl, like: https://aerogear.org/docs/specs/aerogear-unifiedpush-rest-1.0.x/registry/device/index.html#POST Thanks On Mon, Jun 15, 2015 at 12:29 PM, Alex Ballest? > wrote: Hi, I noticed the same behaviour in my aerogear test server, but I thought that was something related with openshift. If service is not used for a while seems like it become suspended until you access again. I tried to reproduce restarting the server but I couldn't... Just found something in the logs this morning after 2 days without using it. (At 2:51 I sent the notification) Log was ----------------------------- 2015/06/13 00:00:00,109 INFO [GCMPushNotificationSender] (EJB default - 2) Deleting ['0'] outdated PushMessageInformation objects 2015/06/13 12:05:30,766 INFO [org.jboss.as.osgi] (MSC service thread 1-5) JBAS011942: Stopping OSGi Framework 2015/06/15 02:51:14,161 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 35) JBAS016200: Activating ConfigAdmin Subsystem 2015/06/15 02:51:14,264 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 41) JBAS016300: Activating JacORB Subsystem 2015/06/15 02:51:14,356 INFO [org.jboss.as.security] (ServerService Thread Pool -- 58) JBAS013101: Activating Security Subsystem 2015/06/15 02:51:14,258 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 40) JBAS010280: Activating Infinispan subsystem. ... ... ------------------------------------- It seem like on saturday 13 service was stopped. And started again on monday 16 at 2:51 (by my notification???) . I also got this error during the startup process -------------------------- 2015/06/15 02:51:46,443 INFO [org.keycloak.adapters.as7.KeycloakAuthenticatorValve] (MSC service thread 1-5) **** using /WEB-INF/keycloak.json 2015/06/15 02:51:46,760 INFO [JPAPushMessageInformationDao] (EJB default - 2) Deleting ['2'] outdated PushMessageInformation objects 2015/06/15 02:51:46,951 INFO [org.keycloak.services.resources.KeycloakApplication] (MSC service thread 1-1) Not importing realm aerogear from resource /WEB-INF/ups-realm.json. It already exists. 2015/06/15 02:51:46,954 INFO [JPAPushMessageInformationDao] (EJB default - 1) Deleting ['2'] outdated PushMessageInformation objects 2015/06/15 02:51:46,966 WARN [com.arjuna.ats.arjuna] (EJB default - 1) ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for SynchronizationImple< 0:ffff0a21a655:16c5d4f8:557e75e5:f, org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization at d8bbe6 >: javax.persistence.OptimisticLockException: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 at org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1402) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] ------------------------ Later another generated message at 2:57 was received an processed fine. I don't know if it's something related with hosting or with UPS. I'm running 1.0.2 too. Sorry if this information is not relevant Alex Ballest? El 13/06/15 a les 08:01, Matthias Wessendorf ha escrit: any chance of stack trace? On Saturday, June 13, 2015, Kelvin Lunsford > wrote: I restarted Wildfly and I had to log into the UPS console to stop the registration errors. The error callback for the plugin push.register() function returns the message "The server returned the error code 500". - Kelvin --------------------------------------------------------------------------- From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf Sent: Friday, June 12, 2015 12:01 AM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] UPS load on startup hrm, that's strange - not noticed so far. Any details on the error message ? Is that reproducable w/ something like curl ? On Fri, Jun 12, 2015 at 3:05 AM, Kelvin Lunsford > wrote: I'm developing a mobile app and testing USP 1.0.2 on Wildfly 8.2.0. Runs great but I've noticed that when the server is restarted registration requests from my mobile app fail until I try to access the ag-push console with a browser and bring up a login page. Then registration works. Anyone noticed this? - Kelvin _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Sent from Gmail Mobile _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Alexandre Ballest? Crevill?n alexandre.balleste at udl.cat ==================== Universitat de Lleida ?rea de sistemes d'Informaci? i Comunicacions Analista/Programador University of Lleida Information and Communication Systems Service Tlf: +34 973 702148 Fax: +34 973 702130 ===================== Av?s legal/Aviso legal/Avertiment legal/Legal notice _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150701/16364380/attachment-0001.html From scm.blanc at gmail.com Wed Jul 1 03:31:35 2015 From: scm.blanc at gmail.com (Sebastien Blanc) Date: Wed, 1 Jul 2015 09:31:35 +0200 Subject: [Aerogear-users] Registering and unregistering from Simple Push and Unified Push In-Reply-To: <1435685407987-86.post@n5.nabble.com> References: <1435685407987-86.post@n5.nabble.com> Message-ID: Hi, On Tue, Jun 30, 2015 at 7:30 PM, mo wrote: > Hi, > > We use OpenShift AeroGear Push Server Cartridge > . > > I've decided to register with simple-push and unified-push every time the > user logs into our application. Also to unregister from both unified-push > and simple-push when they log out or browser closes. Is this a good idea > or > bad idea? > Any reasons you are doing it this way ? AeroGear's SPS JS implementation will keep a mapping SPS <-> UPS in your localStorage, so when you register again it will use this instead of creating a new installation. By registering/unregistering each time you will "pollute" the installation table in UPS. > Also, I've always wondered about the following comment in a sample code: > > "if it is the first registration, need to register the 'pushEndpoint' with > the UnifiedPush server." > < > https://github.com/aerogear/aerogear-js-cookbook/blob/master/simplepush-unifiedpush-example/js/unifiedpush.js#L27-L28 > > > Once a SPS endpoint has been received it needs to register with the UPS except when it has already be done (see previous comment) > > Can somebody explain what is meant by the comment? For example, what would > count as a registration that's not the first? > > Thank you. > > > > -- > View this message in context: > http://aerogear-users.1116366.n5.nabble.com/Registering-and-unregistering-from-Simple-Push-and-Unified-Push-tp86.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150701/d4841bf9/attachment.html From matzew at apache.org Wed Jul 1 04:23:35 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 1 Jul 2015 10:23:35 +0200 Subject: [Aerogear-users] Registering and unregistering from Simple Push and Unified Push In-Reply-To: References: <1435685407987-86.post@n5.nabble.com> Message-ID: Hi Mo, one note, we recently removed SimplePush from our Openshift Push cartridge, but more inline On Wed, Jul 1, 2015 at 9:31 AM, Sebastien Blanc wrote: > Hi, > > On Tue, Jun 30, 2015 at 7:30 PM, mo wrote: > >> Hi, >> >> We use OpenShift AeroGear Push Server Cartridge >> . >> >> I've decided to register with simple-push and unified-push every time the >> user logs into our application. Also to unregister from both unified-push >> and simple-push when they log out or browser closes. Is this a good idea >> or >> bad idea? >> > Any reasons you are doing it this way ? AeroGear's SPS JS implementation > will keep a mapping SPS <-> UPS in your localStorage, so when you register > again it will use this instead of creating a new installation. > Sebi, Is that really the case? is it really stored? and a reconnect works? One big issue w/ SimplePush is, there is no notion of getting an ACK about if the channel is gone or not. Our server returns 200 for each PUT: https://wiki.mozilla.org/WebAPI/SimplePush/Protocol However, I recently noticed, that (regardless of the SimplePush Spec), the deployed MOZ server (wss://push.services.mozilla.com) has a different notion: 200 -> OK (channel is active/registered/online) 202 -> Accept (chanel is known, but not yet online - scheduled for later delivery) 401/405 -> "errors" IMO sent when the PUT URL is invalid I think perhaps we need to revisit this in our Server impl. By registering/unregistering each time you will "pollute" the installation > table in UPS. > unregister will enure bogus installations (w/ eventually outdated channels) are no longer in the DB. simplepush is a bit different here - yes :-) > > >> Also, I've always wondered about the following comment in a sample code: >> >> "if it is the first registration, need to register the 'pushEndpoint' with >> the UnifiedPush server." >> < >> https://github.com/aerogear/aerogear-js-cookbook/blob/master/simplepush-unifiedpush-example/js/unifiedpush.js#L27-L28 >> > >> > Once a SPS endpoint has been received it needs to register with the UPS > except when it has already be done (see previous comment) > >> >> Can somebody explain what is meant by the comment? For example, what >> would >> count as a registration that's not the first? >> >> Thank you. >> >> >> >> -- >> View this message in context: >> http://aerogear-users.1116366.n5.nabble.com/Registering-and-unregistering-from-Simple-Push-and-Unified-Push-tp86.html >> Sent from the aerogear-users mailing list archive at Nabble.com. >> _______________________________________________ >> 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 > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150701/cd24df01/attachment.html From matzew at apache.org Wed Jul 1 05:34:03 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 1 Jul 2015 11:34:03 +0200 Subject: [Aerogear-users] Deleting the installation and categories In-Reply-To: <1435686319196-87.post@n5.nabble.com> References: <1435686319196-87.post@n5.nabble.com> Message-ID: On Tue, Jun 30, 2015 at 7:45 PM, mo wrote: > Hi, > > We use OpenShift AeroGear Push Server Cartridge > . > > I was instructed to delete existing installations and their categories. > What exactly do I need to do? Would I simply truncate some DB tables? If > so, which ones? > I think it's just the Installation_Categories and Installations > > I believe deleting installations and categories is something I should do > periodically. What do you think? No, it's not :-) you wanna keep the regsitered devices. However, you are using SimplePush, and that awfully (as stated in the other thread) has no way to identify if a channel/registration is invalid > I'm thinking server cannot rely on > clients to unregister their installations. On "real" push networks, such as GCM/APNs, we have a way to cleanly auto remove the broken channels > Therefore stale installations > would accumulate over time on the server. Am I over-thinking this? > No - for SimplePush, this is a real problem - yes. > > Would there be anything to be periodically cleaned out on the side of > simple-push server? > Depends... in worst case a few clients are lost, and dont get the version increment delivered > > Thanks. > > > > -- > View this message in context: > http://aerogear-users.1116366.n5.nabble.com/Deleting-the-installation-and-categories-tp87.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150701/48a9b46d/attachment.html From scm.blanc at gmail.com Wed Jul 1 06:20:14 2015 From: scm.blanc at gmail.com (Sebastien Blanc) Date: Wed, 1 Jul 2015 12:20:14 +0200 Subject: [Aerogear-users] Registering and unregistering from Simple Push and Unified Push In-Reply-To: References: <1435685407987-86.post@n5.nabble.com> Message-ID: On Wed, Jul 1, 2015 at 10:23 AM, Matthias Wessendorf wrote: > Hi Mo, > > one note, we recently removed SimplePush from our Openshift Push > cartridge, but more inline > > On Wed, Jul 1, 2015 at 9:31 AM, Sebastien Blanc > wrote: > >> Hi, >> >> On Tue, Jun 30, 2015 at 7:30 PM, mo wrote: >> >>> Hi, >>> >>> We use OpenShift AeroGear Push Server Cartridge >>> >>> . >>> >>> I've decided to register with simple-push and unified-push every time the >>> user logs into our application. Also to unregister from both >>> unified-push >>> and simple-push when they log out or browser closes. Is this a good >>> idea or >>> bad idea? >>> >> Any reasons you are doing it this way ? AeroGear's SPS JS implementation >> will keep a mapping SPS <-> UPS in your localStorage, so when you register >> again it will use this instead of creating a new installation. >> > > Sebi, Is that really the case? is it really stored? and a reconnect works? > Yes and it should reconnect but tbh long time ago I tested that https://github.com/aerogear/aerogear-js/blob/master/src/notifier/adapters/simplePush.js#L391-L418 > > One big issue w/ SimplePush is, there is no notion of getting an ACK about > if the channel is gone or not. > Our server returns 200 for each PUT: > https://wiki.mozilla.org/WebAPI/SimplePush/Protocol > > However, I recently noticed, that (regardless of the SimplePush Spec), the > deployed MOZ server (wss://push.services.mozilla.com) has a different > notion: > 200 -> OK (channel is active/registered/online) > 202 -> Accept (chanel is known, but not yet online - scheduled for later > delivery) > 401/405 -> "errors" IMO sent when the PUT URL is invalid > > I think perhaps we need to revisit this in our Server impl. > > > By registering/unregistering each time you will "pollute" the installation >> table in UPS. >> > > unregister will enure bogus installations (w/ eventually outdated > channels) are no longer in the DB. > > simplepush is a bit different here - yes :-) > > >> >> >>> Also, I've always wondered about the following comment in a sample code: >>> >>> "if it is the first registration, need to register the 'pushEndpoint' >>> with >>> the UnifiedPush server." >>> < >>> https://github.com/aerogear/aerogear-js-cookbook/blob/master/simplepush-unifiedpush-example/js/unifiedpush.js#L27-L28 >>> > >>> >> Once a SPS endpoint has been received it needs to register with the UPS >> except when it has already be done (see previous comment) >> >>> >>> Can somebody explain what is meant by the comment? For example, what >>> would >>> count as a registration that's not the first? >>> >>> Thank you. >>> >>> >>> >>> -- >>> View this message in context: >>> http://aerogear-users.1116366.n5.nabble.com/Registering-and-unregistering-from-Simple-Push-and-Unified-Push-tp86.html >>> Sent from the aerogear-users mailing list archive at Nabble.com. >>> _______________________________________________ >>> 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 >> >> > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150701/57534730/attachment-0001.html From michi.oshima at gmail.com Wed Jul 1 16:06:14 2015 From: michi.oshima at gmail.com (mo) Date: Wed, 1 Jul 2015 13:06:14 -0700 (MST) Subject: [Aerogear-users] Registering and unregistering from Simple Push and Unified Push In-Reply-To: References: <1435685407987-86.post@n5.nabble.com> Message-ID: <1435781174144-95.post@n5.nabble.com> Hi Sebastien, If the contents of the localStorage were deleted for one reason or another, then I believe the browser would have to register anew with SPS and UPS next time. In that case the original registration would be a "bogus installation" on USP as Matthias puts it, I'm thinking. Am I correct? I don't know whether there's going to be any stale data on the side of SPS. Is there? Also, how should I detect whether registration with SPS is previously done? Would the `mailEndpoint` be falsey in that case? I'm talking about this sample code . Here's another, related question. When we reuse registrations in the way you describe, is there any reason ever to call `navigator.push.unregister(...)` or `unifiedPushClient.unregisterWithPushServer(...)`??? I have not seen a sample code where `navigator.push.unregister(...)` was used. I believe I've seen `unregisterWithPushServer(...)` somewhere. Note, I don't exactly know what these unregister functions do. Thank you. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Registering-and-unregistering-from-Simple-Push-and-Unified-Push-tp86p95.html Sent from the aerogear-users mailing list archive at Nabble.com. From tkrones at gmail.com Thu Jul 2 14:05:22 2015 From: tkrones at gmail.com (Tom Krones) Date: Thu, 02 Jul 2015 11:05:22 -0700 (PDT) Subject: [Aerogear-users] Find version and update aerogear on OpenShift Message-ID: <1435860321233.5906e8f2@Nodemailer> I would like to make sure I have the latest Aerogear. ?How can I find out which version I?m running? ?Also, if I?m not running the latest (most likely), how do I update it? Thanks, Tom Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150702/dff90804/attachment.html From lholmqui at redhat.com Thu Jul 2 14:08:49 2015 From: lholmqui at redhat.com (Luke Holmquist) Date: Thu, 2 Jul 2015 14:08:49 -0400 Subject: [Aerogear-users] Find version and update aerogear on OpenShift In-Reply-To: <1435860321233.5906e8f2@Nodemailer> References: <1435860321233.5906e8f2@Nodemailer> Message-ID: AeroGear has many different projects. Android, iOS, Javascript, Cordova, UnifiedPush Server, ... what project are you talking about specifically? On Thu, Jul 2, 2015 at 2:05 PM, Tom Krones wrote: > I would like to make sure I have the latest Aerogear. How can I find > out which version I?m running? Also, if I?m not running the latest (most > likely), how do I update it? > > Thanks, > Tom > > Tom > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150702/4c01d5d6/attachment.html From tkrones at gmail.com Thu Jul 2 14:12:27 2015 From: tkrones at gmail.com (Tom Krones) Date: Thu, 02 Jul 2015 11:12:27 -0700 (PDT) Subject: [Aerogear-users] Find version and update aerogear on OpenShift In-Reply-To: References: Message-ID: <1435860746835.1aa53726@Nodemailer> Sorry, I?m asking about?AeroGear UnifiedPush Server. ?I?m hosting it on OpenShift.com Tom On Thu, Jul 2, 2015 at 1:08 PM, Luke Holmquist wrote: > AeroGear has many different projects. Android, iOS, Javascript, Cordova, > UnifiedPush Server, ... what project are you talking about specifically? > On Thu, Jul 2, 2015 at 2:05 PM, Tom Krones wrote: >> I would like to make sure I have the latest Aerogear. How can I find >> out which version I?m running? Also, if I?m not running the latest (most >> likely), how do I update it? >> >> Thanks, >> Tom >> >> Tom >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150702/1d9b6641/attachment.html From tkrones at gmail.com Thu Jul 2 14:35:49 2015 From: tkrones at gmail.com (Tom Krones) Date: Thu, 02 Jul 2015 11:35:49 -0700 (PDT) Subject: [Aerogear-users] Find version and update aerogear on OpenShift In-Reply-To: <1435860746835.1aa53726@Nodemailer> References: <1435860746835.1aa53726@Nodemailer> Message-ID: <1435862148733.e627acb4@Nodemailer> Logging into my Openshift account I found the version. ?I?m running 1.01 and it looks like 1.03 is the latest version. ?Would it be easier to create a new application instance on openshift and export/import the device installation ids? ?Or is there a better way to upgrade to v1.03 on open shift? Tom On Thu, Jul 2, 2015 at 1:12 PM, Tom Krones wrote: > Sorry, I?m asking about?AeroGear UnifiedPush Server. ?I?m hosting it on OpenShift.com > Tom > On Thu, Jul 2, 2015 at 1:08 PM, Luke Holmquist > wrote: >> AeroGear has many different projects. Android, iOS, Javascript, Cordova, >> UnifiedPush Server, ... what project are you talking about specifically? >> On Thu, Jul 2, 2015 at 2:05 PM, Tom Krones wrote: >>> I would like to make sure I have the latest Aerogear. How can I find >>> out which version I?m running? Also, if I?m not running the latest (most >>> likely), how do I update it? >>> >>> Thanks, >>> Tom >>> >>> Tom >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150702/3b7ee793/attachment.html From matzew at apache.org Fri Jul 3 03:07:17 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Fri, 3 Jul 2015 09:07:17 +0200 Subject: [Aerogear-users] Find version and update aerogear on OpenShift In-Reply-To: <1435862148733.e627acb4@Nodemailer> References: <1435860746835.1aa53726@Nodemailer> <1435862148733.e627acb4@Nodemailer> Message-ID: On Thu, Jul 2, 2015 at 8:35 PM, Tom Krones wrote: > Logging into my Openshift account I found the version. I?m running 1.01 > and it looks like 1.03 is the latest version. Would it be easier to create > a new application instance on openshift and export/import the device > installation ids? yes - that's the best way BTW. very soon, the 1.1.0 version of the push server will be live too - close to release it > Or is there a better way to upgrade to v1.03 on open shift? > > Tom > > > On Thu, Jul 2, 2015 at 1:12 PM, Tom Krones wrote: > >> Sorry, I?m asking about AeroGear UnifiedPush Server. I?m hosting it on >> OpenShift.com >> >> Tom >> >> >> On Thu, Jul 2, 2015 at 1:08 PM, Luke Holmquist >> wrote: >> >>> AeroGear has many different projects. Android, iOS, Javascript, >>> Cordova, UnifiedPush Server, ... what project are you talking about >>> specifically? >>> >>> On Thu, Jul 2, 2015 at 2:05 PM, Tom Krones wrote: >>> >>>> I would like to make sure I have the latest Aerogear. How can I find >>>> out which version I?m running? Also, if I?m not running the latest (most >>>> likely), how do I update it? >>>> >>>> Thanks, >>>> Tom >>>> >>>> Tom >>>> >>>> _______________________________________________ >>>> 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 > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150703/ef44acc7/attachment-0001.html From tkrones at gmail.com Fri Jul 3 16:06:31 2015 From: tkrones at gmail.com (Tom Krones) Date: Fri, 03 Jul 2015 13:06:31 -0700 (PDT) Subject: [Aerogear-users] Find version and update aerogear on OpenShift In-Reply-To: References: Message-ID: <1435953991245.045fd7fb@Nodemailer> Thanks Matthias. ?I?ll wait until 1.1.0 is out to setup the new server. Tom On Fri, Jul 3, 2015 at 2:07 AM, Matthias Wessendorf wrote: > On Thu, Jul 2, 2015 at 8:35 PM, Tom Krones wrote: >> Logging into my Openshift account I found the version. I?m running 1.01 >> and it looks like 1.03 is the latest version. Would it be easier to create >> a new application instance on openshift and export/import the device >> installation ids? > yes - that's the best way > BTW. very soon, the 1.1.0 version of the push server will be live too - > close to release it >> Or is there a better way to upgrade to v1.03 on open shift? >> >> Tom >> >> >> On Thu, Jul 2, 2015 at 1:12 PM, Tom Krones wrote: >> >>> Sorry, I?m asking about AeroGear UnifiedPush Server. I?m hosting it on >>> OpenShift.com >>> >>> Tom >>> >>> >>> On Thu, Jul 2, 2015 at 1:08 PM, Luke Holmquist >>> wrote: >>> >>>> AeroGear has many different projects. Android, iOS, Javascript, >>>> Cordova, UnifiedPush Server, ... what project are you talking about >>>> specifically? >>>> >>>> On Thu, Jul 2, 2015 at 2:05 PM, Tom Krones wrote: >>>> >>>>> I would like to make sure I have the latest Aerogear. How can I find >>>>> out which version I?m running? Also, if I?m not running the latest (most >>>>> likely), how do I update it? >>>>> >>>>> Thanks, >>>>> Tom >>>>> >>>>> Tom >>>>> >>>>> _______________________________________________ >>>>> 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 >> >> > -- > Matthias Wessendorf > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150703/7e37db0d/attachment.html From tkrones at gmail.com Fri Jul 3 16:12:18 2015 From: tkrones at gmail.com (Tom Krones) Date: Fri, 03 Jul 2015 13:12:18 -0700 (PDT) Subject: [Aerogear-users] Tutorial for moving AeroGear UnifiedPush Server to a new server. Message-ID: <1435954337879.adea433e@Nodemailer> I want to move all my device ids to a new server (upgrading openshift installation from 1.0.1 to 1.0.3 or 1.1.0 when it?s out). ?I have the installation down but I?m not sure how to export/import ids and move the certificates. ?Is there a step by step guide for moving servers? ?Is it as easy as exporting a few tables from the MySQL DB and importing them into the new MySQL DB? Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150703/02cb64c2/attachment.html From dpassos at redhat.com Fri Jul 3 16:25:10 2015 From: dpassos at redhat.com (Daniel Passos) Date: Fri, 3 Jul 2015 17:25:10 -0300 Subject: [Aerogear-users] Tutorial for moving AeroGear UnifiedPush Server to a new server. In-Reply-To: <1435954337879.adea433e@Nodemailer> References: <1435954337879.adea433e@Nodemailer> Message-ID: Hi Tom, I think you can start trying import/export your database from UPS[1], and taking a look on or migration tools[2] for upgrade version. [1] https://aerogear.org/docs/unifiedpush/ups_userguide/index/#_exporting_installations [2] https://aerogear.org/docs/unifiedpush/ups_userguide/index/#migration-guide On Fri, Jul 3, 2015 at 5:12 PM, Tom Krones wrote: > I want to move all my device ids to a new server (upgrading openshift > installation from 1.0.1 to 1.0.3 or 1.1.0 when it?s out). I have the > installation down but I?m not sure how to export/import ids and move the > certificates. Is there a step by step guide for moving servers? Is it as > easy as exporting a few tables from the MySQL DB and importing them into > the new MySQL DB? > > Tom > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- -- Passos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150703/cdf5a8a7/attachment.html From matzew at apache.org Fri Jul 3 16:39:16 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Fri, 3 Jul 2015 22:39:16 +0200 Subject: [Aerogear-users] UPS load on startup In-Reply-To: <4bfd1411bed94d049772a82d813a21bb@stantz.qantel.com> References: <557EA907.3090707@udl.cat> <1a6c356e360541ccb02e88b7b2a92875@stantz.qantel.com> <4bfd1411bed94d049772a82d813a21bb@stantz.qantel.com> Message-ID: Hi Kelvin! thanks for the details! I will try this here too for abetter understanding! On Wednesday, July 1, 2015, Kelvin Lunsford wrote: > Thanks for the help Matt, > > > > I used curl and discovered the startup failure only occurred when UPS was > accessed from outside our firewall. It was a proxy configuration problem. > > > > Or at least I was able to avoid the problem with some changes to our > reverse proxy. > > > > By turning on the RequestDumpingHandler in Wildfly I was able to see what > was happening. > > > > Turns out the first time UPS is accessed after startup Wildfly does an > http access to get an aerogear token. Accessing the Aerogear console also > loaded the token, which is why everything worked fine after the console was > accessed. > > > > Wildfly seems to be using the contents of the 'host' header in the > original request to set the host and port used to access > /auth/realms/aerogear. The original 'host' header value did not include a > port which caused port 80 to be used , and the auth URL was not accessible > with those values. > > > > I was able to configure our proxy to set the 'host' header of the proxied > requests to a host:port value used by wildfly, and everything works great > now. > > > > This will probably work differently when Keycloak and UPS are separated. > Bridges to cross. > > > > Again, thanks for your help. > > > > - Kelvin > > > > > > *From:* aerogear-users-bounces at lists.jboss.org > > [mailto:aerogear-users-bounces at lists.jboss.org > ] *On > Behalf Of *Matthias Wessendorf > *Sent:* Wednesday, June 17, 2015 2:07 AM > *To:* aerogear-users at lists.jboss.org > > *Subject:* Re: [Aerogear-users] UPS load on startup > > > > Hi Kevin, > > > > thanks for the feedback! Here is what I did to reproduce your issue (w/o > success): > > > > * I have deployed UPS 1.0.2 into a (full profile) WF 8.2. > > * start the server (reset the admin password) > > * create app and (dummy) variant (for Android), and noted the > variantID:secret > > * shutdown WF > > * start WF > > * did a curl agains the registration endpoint (got a 200) > > * logged in, and seeing one device is registered. > > > > Here is the CURL, I used (note the -u value ;-)) > > > > curl -u "variantID:secret" -v -H "Accept: application/json" -H > "Content-type: application/json" -X POST -d '{"deviceToken" : > "a152f21a-d327-4303-99d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1"}' > http://127.0.0.1:8080/ag-push/rest/registry/device > > > > > > That worked fine. My question is: does _this_ also generate you the 404 > error? Or is that something you are "just" seeing from the AeroGear > Registration SDK? (e.g. for Android/iOS or Cordova). > > > > PS: the same 'test' passes with the 1.1.0-Final-SNAPSHOT build I did > locally > > > > Thanks! > > Matthias > > > > > > > > > > On Wed, Jun 17, 2015 at 3:31 AM, Kelvin Lunsford > wrote: > > I tried to add UPS logging by following the instructions in the UPS user > guide but couldn't get it working. > > This is what I see in the server.log file. > > ... > > 2015-06-16 15:49:52,284 INFO [org.jboss.as] (Controller Boot Thread) > JBAS015961: Http management interface listening on > http://127.0.0.1:9990/management > 2015-06-16 15:49:52,284 > INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console > listening on http://127.0.0.1:9990 > 2015-06-16 15:49:52,284 INFO [org.jboss.as] (Controller Boot Thread) > JBAS015874: WildFly 8.2.0.Final "Tweek" started in 13573ms - Started 579 of > 637 services (101 services are lazy, passive or on-demand) > 2015-06-16 15:50:27,011 ERROR [io.undertow.request] (default task-1) > UT005023: Exception handling request to /ag-push/rest/registry/device: > java.lang.RuntimeException: Unable to resolve realm public key remotely, > status = 404 > at > org.keycloak.adapters.AdapterDeploymentContext.resolveRealmKey(AdapterDeploymentContext.java:69) > [keycloak-adapter-core-1.0.4.Final.jar:] > at > org.keycloak.adapters.AdapterDeploymentContext.resolveDeployment(AdapterDeploymentContext.java:55) > [keycloak-adapter-core-1.0.4.Final.jar:] > at > org.keycloak.adapters.undertow.ServletKeycloakAuthMech.authenticate(ServletKeycloakAuthMech.java:54) > [keycloak-undertow-adapter-1.0.4.Final.jar:] > at > io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:281) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:298) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:268) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:131) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:106) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:54) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69) > [keycloak-undertow-adapter-1.0.4.Final.jar:] > at > org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69) > [keycloak-undertow-adapter-1.0.4.Final.jar:] > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown > Source) [rt.jar:1.7.0_71] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown > Source) [rt.jar:1.7.0_71] > at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_71] > > > The error occurs each time I try to do a registration after server > restart, until I log into the UPS console, then the errors stop. > > - Kelvin > > > > > > ---------------------------------------------------------------------------------- > > From: aerogear-users-bounces at lists.jboss.org > > [mailto:aerogear-users-bounces at lists.jboss.org > ] > On Behalf Of Matthias Wessendorf > Sent: Monday, June 15, 2015 4:10 AM > > To: aerogear-users at lists.jboss.org > > Subject: Re: [Aerogear-users] UPS load on startup > > Hi, > > yes, openshift gets susspended after 48 hours (I think) of inactivity - > but I think your error is different to Kevin's > > Kevin any chance to get a log file / stack-trace from the 500 ? > > Is that just on Android/Cordova, or does that also reproduce w/ doing > (test) registration w/ curl, like: > > https://aerogear.org/docs/specs/aerogear-unifiedpush-rest-1.0.x/registry/device/index.html#POST > > Thanks > > On Mon, Jun 15, 2015 at 12:29 PM, Alex Ballest? < > alexandre.balleste at udl.cat > > wrote: > Hi, I noticed the same behaviour in my aerogear test server, but I thought > that was something related with openshift. If service is not used for a > while seems like it become suspended until you access again. > > I tried to reproduce restarting the server but I couldn't... Just found > something in the logs this morning after 2 days without using it. (At 2:51 > I sent the notification) > > Log was > ----------------------------- > 2015/06/13 00:00:00,109 INFO [GCMPushNotificationSender] (EJB default - > 2) Deleting ['0'] outdated PushMessageInformation objects > 2015/06/13 12:05:30,766 INFO [org.jboss.as.osgi] (MSC service thread 1-5) > JBAS011942: Stopping OSGi Framework > 2015/06/15 02:51:14,161 INFO [org.jboss.as.configadmin] (ServerService > Thread Pool -- 35) JBAS016200: Activating ConfigAdmin Subsystem > 2015/06/15 02:51:14,264 INFO [org.jboss.as.jacorb] (ServerService Thread > Pool -- 41) JBAS016300: Activating JacORB Subsystem > 2015/06/15 02:51:14,356 INFO [org.jboss.as.security] (ServerService > Thread Pool -- 58) JBAS013101: Activating Security Subsystem > 2015/06/15 02:51:14,258 INFO [org.jboss.as.clustering.infinispan] > (ServerService Thread Pool -- 40) JBAS010280: Activating Infinispan > subsystem. > ... > ... > ------------------------------------- > > It seem like on saturday 13 service was stopped. And started again on > monday 16 at 2:51 (by my notification???) . I also got this error during > the startup process > > -------------------------- > 2015/06/15 02:51:46,443 INFO > [org.keycloak.adapters.as7.KeycloakAuthenticatorValve] (MSC service thread > 1-5) **** using /WEB-INF/keycloak.json > 2015/06/15 02:51:46,760 INFO [JPAPushMessageInformationDao] (EJB default > - 2) Deleting ['2'] outdated PushMessageInformation objects > 2015/06/15 02:51:46,951 INFO > [org.keycloak.services.resources.KeycloakApplication] (MSC service thread > 1-1) Not importing realm aerogear from resource /WEB-INF/ups-realm.json. > It already exists. > 2015/06/15 02:51:46,954 INFO [JPAPushMessageInformationDao] (EJB default > - 1) Deleting ['2'] outdated PushMessageInformation objects > 2015/06/15 02:51:46,966 WARN [com.arjuna.ats.arjuna] (EJB default - 1) > ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for > SynchronizationImple< 0:ffff0a21a655:16c5d4f8:557e75e5:f, > org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization at d8bbe6 > > >: javax.persistence.OptimisticLockException: > org.hibernate.StaleStateException: Batch update returned unexpected row > count from update [0]; actual row count: 0; expected: 1 > at > org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1402) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109) > [hibernate-core-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53) > [hibernate-core-4.0.1.Final.jar:4.0.1.Final] > ------------------------ > > Later another generated message at 2:57 was received an processed fine. I > don't know if it's something related with hosting or with UPS. I'm running > 1.0.2 too. > > Sorry if this information is not relevant > > Alex Ballest? > > El 13/06/15 a les 08:01, Matthias Wessendorf ha escrit: > any chance of stack trace? > > On Saturday, June 13, 2015, Kelvin Lunsford > wrote: > I restarted Wildfly and I had to log into the UPS console to stop the > registration errors. > > The error callback for the plugin push.register() function returns the > message "The server returned the error code 500". > > - Kelvin > > > > --------------------------------------------------------------------------- > > From: aerogear-users-bounces at lists.jboss.org > > [mailto:aerogear-users-bounces at lists.jboss.org > ] > On Behalf Of Matthias Wessendorf > Sent: Friday, June 12, 2015 12:01 AM > To: aerogear-users at lists.jboss.org > > Subject: Re: [Aerogear-users] UPS load on startup > > hrm, > > that's strange - not noticed so far. > Any details on the error message ? Is that reproducable w/ something like > curl ? > > On Fri, Jun 12, 2015 at 3:05 AM, Kelvin Lunsford > wrote: > I'm developing a mobile app and testing USP 1.0.2 on Wildfly 8.2.0. > > Runs great but I've noticed that when the server is restarted registration > requests from my mobile app fail until I try to access the ag-push console > with a browser and bring up a login page. Then registration works. > > Anyone noticed this? > > - Kelvin > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > -- > Sent from Gmail Mobile > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- > Alexandre Ballest? Crevill?n alexandre.balleste at udl.cat > ==================== > Universitat de Lleida > ?rea de sistemes d'Informaci? i Comunicacions > Analista/Programador > > University of Lleida > Information and Communication Systems Service > > Tlf: +34 973 702148 > Fax: +34 973 702130 > ===================== > Av?s legal/Aviso legal/Avertiment legal/Legal notice > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > > -- > > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150703/b58e232c/attachment-0001.html From tkrones at gmail.com Fri Jul 3 16:45:09 2015 From: tkrones at gmail.com (Tom Krones) Date: Fri, 03 Jul 2015 13:45:09 -0700 (PDT) Subject: [Aerogear-users] Tutorial for moving AeroGear UnifiedPush Server to a new server. In-Reply-To: References: Message-ID: <1435956308591.cb81240d@Nodemailer> Thanks Daniel. Cool. ?Looks like exporting/importing the device IDs is easy but how do I handle the exporting/importing of the Applications, Variants, Application ID, Master Secret, Certificates, etc? ?I was hoping to be able to spin up a new server, copy over all the data and then using DNS reroute the traffic from the old server to the new server. ?I don?t totally have a handle on what I need to do to move all the information to a new server. I tried the migration guide (aka update guide) yesterday and failed. ?From what I read in the migration download readme, I don?t need to do anything to the DB if I?m already running 1.0.1 (right?) but when I tried to replace the WAR files openshift wouldn?t let me or at least I couldn?t figure out how. ?:( ?I?m not sure Openshift will let you edit the code if you use one of the OpenShift Online Cartridges, right? Tom On Fri, Jul 3, 2015 at 3:25 PM, Daniel Passos wrote: > Hi Tom, > I think you can start trying import/export your database from UPS[1], and > taking a look on or migration tools[2] for upgrade version. > [1] > https://aerogear.org/docs/unifiedpush/ups_userguide/index/#_exporting_installations > [2] > https://aerogear.org/docs/unifiedpush/ups_userguide/index/#migration-guide > On Fri, Jul 3, 2015 at 5:12 PM, Tom Krones wrote: >> I want to move all my device ids to a new server (upgrading openshift >> installation from 1.0.1 to 1.0.3 or 1.1.0 when it?s out). I have the >> installation down but I?m not sure how to export/import ids and move the >> certificates. Is there a step by step guide for moving servers? Is it as >> easy as exporting a few tables from the MySQL DB and importing them into >> the new MySQL DB? >> >> Tom >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > -- > -- Passos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150703/11c10821/attachment.html From matzew at apache.org Mon Jul 6 04:42:11 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 6 Jul 2015 10:42:11 +0200 Subject: [Aerogear-users] Tutorial for moving AeroGear UnifiedPush Server to a new server. In-Reply-To: <1435956308591.cb81240d@Nodemailer> References: <1435956308591.cb81240d@Nodemailer> Message-ID: On Friday, July 3, 2015, Tom Krones wrote: > Thanks Daniel. > > Cool. Looks like exporting/importing the device IDs is easy but how do I > handle the exporting/importing of the Applications, Variants, Application > ID, Master Secret, Certificates, etc? I was hoping to be able to spin up a > new server, copy over all the data and then using DNS reroute the traffic > from the old server to the new server. I don?t totally have a handle on > what I need to do to move all the information to a new server. > > I tried the migration guide (aka update guide) yesterday and failed. From > what I read in the migration download readme, I don?t need to do anything > to the DB if I?m already running 1.0.1 (right?) but when I tried to replace > the WAR files openshift wouldn?t let me or at least I couldn?t figure out > how. :( I?m not sure Openshift will let you edit the code if you use one > of the OpenShift Online Cartridges, right? > Hi, there is no exprt of the entire app and its variants. I'd do the following: * note down the PushAppID:MasterSecrete and the different VariantIDs:Secrets * export the device metadata * delete the openshift instance * create a new (will now use 1.0.3), using the same name (that ensures the URL stays - no need to do some redirects via DNS) * manually setup Push App / Variants * import the Devices Now - a little "hack" go to the Openshift console and add the PHP my Admin, and then go to the database, and change the PushAppID:MasterSecrete as well as all the different VariantIDs:Secrets to their original values. > > Tom > > > On Fri, Jul 3, 2015 at 3:25 PM, Daniel Passos wrote: > >> Hi Tom, >> >> I think you can start trying import/export your database from UPS[1], and >> taking a look on or migration tools[2] for upgrade version. >> >> [1] >> https://aerogear.org/docs/unifiedpush/ups_userguide/index/#_exporting_installations >> [2] >> https://aerogear.org/docs/unifiedpush/ups_userguide/index/#migration-guide >> >> On Fri, Jul 3, 2015 at 5:12 PM, Tom Krones wrote: >> >>> I want to move all my device ids to a new server (upgrading openshift >>> installation from 1.0.1 to 1.0.3 or 1.1.0 when it?s out). I have the >>> installation down but I?m not sure how to export/import ids and move the >>> certificates. Is there a step by step guide for moving servers? Is it as >>> easy as exporting a few tables from the MySQL DB and importing them into >>> the new MySQL DB? >>> >>> Tom >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >> >> >> -- >> -- Passos >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150706/838dca2d/attachment.html From scm.blanc at gmail.com Mon Jul 6 05:14:16 2015 From: scm.blanc at gmail.com (Sebastien Blanc) Date: Mon, 6 Jul 2015 11:14:16 +0200 Subject: [Aerogear-users] Registering and unregistering from Simple Push and Unified Push In-Reply-To: <1435781174144-95.post@n5.nabble.com> References: <1435685407987-86.post@n5.nabble.com> <1435781174144-95.post@n5.nabble.com> Message-ID: Hey, sorry for the late response On Wed, Jul 1, 2015 at 10:06 PM, mo wrote: > Hi Sebastien, > > If the contents of the localStorage were deleted for one reason or another, > then I believe the browser would have to register anew with SPS and UPS > next > time. In that case the original registration would be a "bogus > installation" on USP as Matthias puts it, I'm thinking. Am I correct? Yes > I > don't know whether there's going to be any stale data on the side of SPS. > Is there? > I think SPS has some kind of "reaper" service that does a clean up but to be honest I don't know the details of it. Daniel (who is currently on parental leave) could give you more details on that/ > > Also, how should I detect whether registration with SPS is previously done? > Would the `mailEndpoint` be falsey in that case? Yes > I'm talking about this > sample code > < > https://github.com/aerogear/aerogear-js-cookbook/blob/master/simplepush-unifiedpush-example/js/unifiedpush.js#L29 > > > . > > Here's another, related question. When we reuse registrations in the way > you describe, is there any reason ever to call > `navigator.push.unregister(...)` or > `unifiedPushClient.unregisterWithPushServer(...)`??? I have not seen a > sample code where `navigator.push.unregister(...)` was used. I believe > I've > seen `unregisterWithPushServer(...)` somewhere. Note, I don't exactly know > what these unregister functions do. > This could be used when an user don't want to receive notification anymore, imagine a config section in the webapp where the user can turn off the notification for instance. > > Thank you. > > > > > > -- > View this message in context: > http://aerogear-users.1116366.n5.nabble.com/Registering-and-unregistering-from-Simple-Push-and-Unified-Push-tp86p95.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150706/596aeca8/attachment.html From michi.oshima at gmail.com Mon Jul 6 10:49:06 2015 From: michi.oshima at gmail.com (mo) Date: Mon, 6 Jul 2015 07:49:06 -0700 (MST) Subject: [Aerogear-users] Registering and unregistering from Simple Push and Unified Push In-Reply-To: References: <1435685407987-86.post@n5.nabble.com> <1435781174144-95.post@n5.nabble.com> Message-ID: <1436194146753-108.post@n5.nabble.com> Hi S?bastien, S?bastien Blanc wrote >> >> Also, how should I detect whether registration with SPS is previously >> done? >> Would the `mailEndpoint` be falsey in that case? > > Yes > >> I'm talking about this >> sample code >> < >> https://github.com/aerogear/aerogear-js-cookbook/blob/master/simplepush-unifiedpush-example/js/unifiedpush.js#L29 >> > >> . I haven't run the sample code I mention above. But in my code the endpoint (`event.target.result`) is never falsey. I just tested this. I use aerogear.js version 2.0.0. My code snippet below: ```javascript request.onsuccess = function (event) { var endpoint = event.target.result; var channelID = event.type.replace('-success', ''); if (! endpoint) { console.log('null endpoint for topic registration: channelID=' + channelID); return; } console.log('successful simple push registration: topic=' + topic + ', channelID=' + channelID); ``` Console always logs 'successful simple push registration'. Also Matthias, if I am supposed to register with simple push only the first time, then should I still be registering/unregistering with UPS every time I run my application? -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Registering-and-unregistering-from-Simple-Push-and-Unified-Push-tp86p108.html Sent from the aerogear-users mailing list archive at Nabble.com. From michi.oshima at gmail.com Mon Jul 6 10:59:40 2015 From: michi.oshima at gmail.com (mo) Date: Mon, 6 Jul 2015 07:59:40 -0700 (MST) Subject: [Aerogear-users] Multiple categories? Message-ID: <1436194780787-109.post@n5.nabble.com> Hi, This sample code specifies only one category, "mail". Is it possible to specify multiple categories? For example, categories `["A", "B", "C"]`. If so, when I receive a message, will I be able to tell to which category the message belongs? If the sender were to tag the message as category "A", would the client be able to inspect the message and extract "A"? Thanks. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Multiple-categories-tp109.html Sent from the aerogear-users mailing list archive at Nabble.com. From michi.oshima at gmail.com Mon Jul 6 14:34:33 2015 From: michi.oshima at gmail.com (mo) Date: Mon, 6 Jul 2015 11:34:33 -0700 (MST) Subject: [Aerogear-users] WeldException: duplicate class definition Message-ID: <1436207673554-110.post@n5.nabble.com> Hi, I'm not sure the significance of this, but I'm going to report an error I'm seeing. Scenario is a bit complicated and may not be relevant to anything or anybody, so I apologize beforehand. Again, I use: https://github.com/aerogear/openshift-origin-cartridge-aerogear-push I get the following error when I attempt to attempt a duplicate registration. That is, when I attempt to register the same item the second time. Error: 2015/07/06 13:27:50,138 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ag-push].[org.jboss.aerogear.unifiedpush.rest.RestApplication]] (http-127.5.38.1-127.5.38.1-8080-3) Servlet.service() for servlet org.jboss.aerogear.unifiedpush.rest.RestApplication threw exception: org.jboss.weld.exceptions.WeldException: by java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1934315144$Proxy$_$$_Weld$Proxy$" Why do I do duplicate registration? Not for any good reason. It's because: 1. I'm currently testing reconnection (navigator.push.reconnect()). 2. I cannot determine whether I've registered with unified push server previously. (See one of my recent posts for details.) So I end up attempting registration with unified push server when I reconnect. Note: 1. My client application registers 8 channels. 2. Unified push server doesn't fail all 8 duplicate registrations. It fails about a half of them randomly. 3. Just to show that I did some research: a ticket that mentions a similar error . It's funny, the ticket was filed for aerogear, apparently by mistake. If anyone is interested, I can make an entire server.log that contains the error and its context. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/WeldException-duplicate-class-definition-tp110.html Sent from the aerogear-users mailing list archive at Nabble.com. From matzew at apache.org Mon Jul 6 15:06:35 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 6 Jul 2015 21:06:35 +0200 Subject: [Aerogear-users] WeldException: duplicate class definition In-Reply-To: <1436207673554-110.post@n5.nabble.com> References: <1436207673554-110.post@n5.nabble.com> Message-ID: hi the stack indicates a JBoss AS7 instance (due to catalina) Can you launch a complete new instance (now based on WildFly)? Note: there is no longer SimplePush on the cartirdge, means: - use the Mozilla Network(wss://push.services.mozilla.com) - use the SimplePush facility of your existing instance Thanks, Matthias On Monday, July 6, 2015, mo wrote: > Hi, > > I'm not sure the significance of this, but I'm going to report an error I'm > seeing. Scenario is a bit complicated and may not be relevant to anything > or anybody, so I apologize beforehand. > > Again, I use: > https://github.com/aerogear/openshift-origin-cartridge-aerogear-push > > I get the following error when I attempt to attempt a duplicate > registration. That is, when I attempt to register the same item the second > time. > > Error: > > 2015/07/06 13:27:50,138 ERROR > > [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ag-push].[org.jboss.aerogear.unifiedpush.rest.RestApplication]] > (http-127.5.38.1-127.5.38.1-8080-3) Servlet.service() for servlet > org.jboss.aerogear.unifiedpush.rest.RestApplication threw exception: > org.jboss.weld.exceptions.WeldException: by java.lang.LinkageError: loader > (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate > class definition for name: > > "org/jboss/weldx/persistence/EntityManager$-1934315144$Proxy$_$$_Weld$Proxy$" > > Why do I do duplicate registration? Not for any good reason. It's > because: > > 1. I'm currently testing reconnection (navigator.push.reconnect()). > 2. I cannot determine whether I've registered with unified push server > previously. (See one of my recent posts for details.) So I end up > attempting registration with unified push server when I reconnect. > > Note: > > 1. My client application registers 8 channels. > 2. Unified push server doesn't fail all 8 duplicate registrations. It > fails > about a half of them randomly. > 3. Just to show that I did some research: a ticket that mentions a similar > error . It's funny, > the ticket was filed for aerogear, apparently by mistake. > > If anyone is interested, I can make an entire server.log that contains the > error and its context. > > > > > > -- > View this message in context: > http://aerogear-users.1116366.n5.nabble.com/WeldException-duplicate-class-definition-tp110.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150706/7bfa5914/attachment.html From michi.oshima at gmail.com Mon Jul 6 15:37:23 2015 From: michi.oshima at gmail.com (mo) Date: Mon, 6 Jul 2015 12:37:23 -0700 (MST) Subject: [Aerogear-users] WeldException: duplicate class definition In-Reply-To: References: <1436207673554-110.post@n5.nabble.com> Message-ID: <1436211443048-112.post@n5.nabble.com> Doh. I will do that immediately. Thanks, Matthias. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/WeldException-duplicate-class-definition-tp110p112.html Sent from the aerogear-users mailing list archive at Nabble.com. From michi.oshima at gmail.com Mon Jul 6 16:01:40 2015 From: michi.oshima at gmail.com (mo) Date: Mon, 6 Jul 2015 13:01:40 -0700 (MST) Subject: [Aerogear-users] WeldException: duplicate class definition In-Reply-To: References: <1436207673554-110.post@n5.nabble.com> Message-ID: <1436212900858-113.post@n5.nabble.com> Hi Matthias, Matthias Wessendorf wrote > Note: there is no longer SimplePush on the cartirdge, means: > - use the Mozilla Network(wss://push.services.mozilla.com) I'm not finding any information on "wss://push.services.mozilla.com". Would you help me out? -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/WeldException-duplicate-class-definition-tp110p113.html Sent from the aerogear-users mailing list archive at Nabble.com. From matzew at apache.org Mon Jul 6 16:21:50 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 6 Jul 2015 22:21:50 +0200 Subject: [Aerogear-users] WeldException: duplicate class definition In-Reply-To: <1436212900858-113.post@n5.nabble.com> References: <1436207673554-110.post@n5.nabble.com> <1436212900858-113.post@n5.nabble.com> Message-ID: That's the WebSocket URL of Mozilla's SimplePush Server, our JS lib has support baked in for it: https://github.com/aerogear/aerogear-js/blob/master/src/simplepush/aerogear.simplepush.js#L55 How do your JS clients connect against your SimplePush Server? via our lib? Or your own, custom JS APIs ? Thanks, Matthias On Mon, Jul 6, 2015 at 10:01 PM, mo wrote: > Hi Matthias, > > > Matthias Wessendorf wrote > > Note: there is no longer SimplePush on the cartirdge, means: > > - use the Mozilla Network(wss://push.services.mozilla.com) > > I'm not finding any information on "wss://push.services.mozilla.com". > Would > you help me out? > > > > -- > View this message in context: > http://aerogear-users.1116366.n5.nabble.com/WeldException-duplicate-class-definition-tp110p113.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150706/bfb6a2f2/attachment.html From edewit at redhat.com Mon Jul 6 16:58:02 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Mon, 6 Jul 2015 22:58:02 +0200 Subject: [Aerogear-users] Multiple categories? In-Reply-To: <1436194780787-109.post@n5.nabble.com> References: <1436194780787-109.post@n5.nabble.com> Message-ID: On Mon, Jul 6, 2015 at 4:59 PM, mo wrote: > specifies only one category, "mail". Is it possible to specify multiple > categories? For example, categories `["A", "B", "C"]`. If so, when I > Yes that is possible receive a message, will I be able to tell to which category the message > belongs? If the sender were to tag the message as category "A", would the > client be able to inspect the message and extract "A"? > Not out of the box, but you could add the category manually when sending and then the client can read it. See here: https://aerogear.org/docs/unifiedpush/push-message-format/ or here https://aerogear.org/docs/unifiedpush/push-message-format-dev/ depending on your version you can add user defined keys to the message (someKey, anotherCustomKey) If you put your category there as well the client will get it when it receives the message. -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150706/bd04af1f/attachment-0001.html From matzew at apache.org Mon Jul 6 17:10:31 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 6 Jul 2015 23:10:31 +0200 Subject: [Aerogear-users] Multiple categories? In-Reply-To: References: <1436194780787-109.post@n5.nabble.com> Message-ID: On Monday, July 6, 2015, Erik Jan de Wit wrote: > > On Mon, Jul 6, 2015 at 4:59 PM, mo > wrote: > >> specifies only one category, "mail". Is it possible to specify multiple >> categories? For example, categories `["A", "B", "C"]`. If so, when I >> > > Yes that is possible > > receive a message, will I be able to tell to which category the message >> belongs? If the sender were to tag the message as category "A", would the >> client be able to inspect the message and extract "A"? >> > > Not out of the box, but you could add the category manually when sending > and then the client can read it. > > See here: https://aerogear.org/docs/unifiedpush/push-message-format/ or > here https://aerogear.org/docs/unifiedpush/push-message-format-dev/ > depending on your version you can add user defined keys to the message (someKey, > anotherCustomKey) > That is a good idea, Erik! I like it :-) I think the problem here is the usage of SimplePush: the push server only send a version/timestamp :-/ -M > > If you put your category there as well the client will get it when it > receives the message. > > -- > Cheers, > Erik Jan > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150706/45b93ebf/attachment.html From edewit at redhat.com Mon Jul 6 19:04:20 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 7 Jul 2015 01:04:20 +0200 Subject: [Aerogear-users] Multiple categories? In-Reply-To: References: <1436194780787-109.post@n5.nabble.com> Message-ID: Oops, didn't see it was about simple push, in that case it's still possible tough, only have to query your backend with the 'number' you supplied your client with. To elaborate let's say with category 'a' I send a message with number 26, then when the client queries the backend, after receiving the notification, with number 26, the backend can inform the client that it was category 'a' that was used to "triggered" it. Does that make sense? On Mon, Jul 6, 2015 at 11:10 PM, Matthias Wessendorf wrote: > > > On Monday, July 6, 2015, Erik Jan de Wit wrote: > >> >> On Mon, Jul 6, 2015 at 4:59 PM, mo wrote: >> >>> specifies only one category, "mail". Is it possible to specify multiple >>> categories? For example, categories `["A", "B", "C"]`. If so, when I >>> >> >> Yes that is possible >> >> receive a message, will I be able to tell to which category the message >>> belongs? If the sender were to tag the message as category "A", would >>> the >>> client be able to inspect the message and extract "A"? >>> >> >> Not out of the box, but you could add the category manually when sending >> and then the client can read it. >> >> See here: https://aerogear.org/docs/unifiedpush/push-message-format/ or >> here https://aerogear.org/docs/unifiedpush/push-message-format-dev/ >> depending on your version you can add user defined keys to the message (someKey, >> anotherCustomKey) >> > > That is a good idea, Erik! I like it :-) > > I think the problem here is the usage of SimplePush: the push server only > send a version/timestamp :-/ > > -M > > > > >> >> If you put your category there as well the client will get it when it >> receives the message. >> >> -- >> Cheers, >> Erik Jan >> > > > -- > Sent from Gmail Mobile > > _______________________________________________ > 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/20150707/b97fbd23/attachment.html From kelvin at qantel.com Mon Jul 6 20:59:28 2015 From: kelvin at qantel.com (Kelvin Lunsford) Date: Tue, 7 Jul 2015 00:59:28 +0000 Subject: [Aerogear-users] cordova push plugin.xml namespace Message-ID: <9c821adb943649a8aed9d60b38129d2b@stantz.qantel.com> Can someone please modify plugin.xml so the xmlns:android namespace attribute is in the top-level element as specified in the plugin.xml documentation (https://cordova.apache.org/docs/en/5.1.1/plugin_ref_spec.md.html), and take the xmlns:android attributes out of the lower elements. If the namespace is not changed problems will occur when installing the push plugin along with any other plugin containing one of the push plugins android permissions (e.g. cordova-plugin-contacts uses GET_ACCOUNTS, cordova-plugin-wakeuptimer uses WAKE_LOCK). Cordova CLI can deal with the same android permission used by multiple plugins but will install an invalid extra copy of a permission if it includes a xmlns:android attribute. The android ACCESS_NETWORK_STATE permission was removed by aerogear in the latest release because of AGCORDOVA-72. The cause of the AGCORDOVA-72 problem was most likely the namespace problem. The permission should not have been removed. - Kelvin From matzew at apache.org Tue Jul 7 01:53:34 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 7 Jul 2015 07:53:34 +0200 Subject: [Aerogear-users] Multiple categories? In-Reply-To: References: <1436194780787-109.post@n5.nabble.com> Message-ID: On Tue, Jul 7, 2015 at 1:04 AM, Erik Jan de Wit wrote: > Oops, didn't see it was about simple push, in that case it's still > possible tough, only have to query your backend with the 'number' you > supplied your client with. To elaborate let's say with category 'a' I send > a message with number 26, then when the client queries the backend, after > receiving the notification, with number 26, the backend can inform the > client that it was category 'a' that was used to "triggered" it. > > Does that make sense? > yes, totally Just shows the trade offs of SimplePush :-) > > On Mon, Jul 6, 2015 at 11:10 PM, Matthias Wessendorf > wrote: > >> >> >> On Monday, July 6, 2015, Erik Jan de Wit wrote: >> >>> >>> On Mon, Jul 6, 2015 at 4:59 PM, mo wrote: >>> >>>> specifies only one category, "mail". Is it possible to specify multiple >>>> categories? For example, categories `["A", "B", "C"]`. If so, when I >>>> >>> >>> Yes that is possible >>> >>> receive a message, will I be able to tell to which category the message >>>> belongs? If the sender were to tag the message as category "A", would >>>> the >>>> client be able to inspect the message and extract "A"? >>>> >>> >>> Not out of the box, but you could add the category manually when sending >>> and then the client can read it. >>> >>> See here: https://aerogear.org/docs/unifiedpush/push-message-format/ or >>> here https://aerogear.org/docs/unifiedpush/push-message-format-dev/ >>> depending on your version you can add user defined keys to the message (someKey, >>> anotherCustomKey) >>> >> >> That is a good idea, Erik! I like it :-) >> >> I think the problem here is the usage of SimplePush: the push server only >> send a version/timestamp :-/ >> >> -M >> >> >> >> >>> >>> If you put your category there as well the client will get it when it >>> receives the message. >>> >>> -- >>> Cheers, >>> Erik Jan >>> >> >> >> -- >> Sent from Gmail Mobile >> >> _______________________________________________ >> 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 > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150707/c768ea97/attachment-0001.html From edewit at redhat.com Tue Jul 7 05:17:01 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 7 Jul 2015 11:17:01 +0200 Subject: [Aerogear-users] cordova push plugin.xml namespace In-Reply-To: <9c821adb943649a8aed9d60b38129d2b@stantz.qantel.com> References: <9c821adb943649a8aed9d60b38129d2b@stantz.qantel.com> Message-ID: Right, good find! I've created a PR for this https://github.com/aerogear/aerogear-cordova-push/pull/72 maybe you can try it out? cordova plugin add https://github.com/edewit/aerogear-pushplugin-cordova\#namespace-fix On Tue, Jul 7, 2015 at 2:59 AM, Kelvin Lunsford wrote: > Can someone please modify plugin.xml so the xmlns:android namespace > attribute is in the top-level element as specified in the plugin.xml > documentation ( > https://cordova.apache.org/docs/en/5.1.1/plugin_ref_spec.md.html), and > take the xmlns:android attributes out of the lower elements. > > If the namespace is not changed problems will occur when installing the > push plugin along with any other plugin containing one of the push plugins > android permissions (e.g. cordova-plugin-contacts uses GET_ACCOUNTS, > cordova-plugin-wakeuptimer uses WAKE_LOCK). > > Cordova CLI can deal with the same android permission used by multiple > plugins but will install an invalid extra copy of a permission if it > includes a xmlns:android attribute. > > The android ACCESS_NETWORK_STATE permission was removed by aerogear in the > latest release because of AGCORDOVA-72. The cause of the AGCORDOVA-72 > problem was most likely the namespace problem. The permission should not > have been removed. > > - Kelvin > > > _______________________________________________ > 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/20150707/22ec115d/attachment.html From edewit at redhat.com Tue Jul 7 09:43:41 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 7 Jul 2015 15:43:41 +0200 Subject: [Aerogear-users] Windows 10 Message-ID: Hi all, As you might now windows 10 is coming, for us developers not a whole lot is changing, but oauth2 is going to be simpler. So I created a branch for windows 10 to remove the *AndContinue API, have a look and maybe even try it out. https://github.com/aerogear/aerogear-windows-oauth2/tree/windows10 -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150707/10c47729/attachment.html From matzew at apache.org Tue Jul 7 10:56:58 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 7 Jul 2015 16:56:58 +0200 Subject: [Aerogear-users] Windows 10 In-Reply-To: References: Message-ID: very cool ! On Tue, Jul 7, 2015 at 3:43 PM, Erik Jan de Wit wrote: > Hi all, > > As you might now windows 10 is coming, for us developers not a whole lot > is changing, but oauth2 is going to be simpler. So I created a branch for > windows 10 to remove the *AndContinue API, have a look and maybe even try > it out. > > https://github.com/aerogear/aerogear-windows-oauth2/tree/windows10 > > -- > Cheers, > Erik Jan > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150707/b3fe439c/attachment.html From kelvin at qantel.com Tue Jul 7 17:43:53 2015 From: kelvin at qantel.com (Kelvin Lunsford) Date: Tue, 7 Jul 2015 21:43:53 +0000 Subject: [Aerogear-users] cordova push plugin.xml namespace In-Reply-To: References: <9c821adb943649a8aed9d60b38129d2b@stantz.qantel.com> Message-ID: <32c06ebf8b1c44cd9a7cc5582b8366f6@stantz.qantel.com> Thanks Erik, The latest commit should fix the permission problem I was seeing. The plugin.xml file still has unneeded xmlns:android namespace attributes in elements on lines 35, 38, and 39. - Kelvin ------------------------------------------------------------------------------------ From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of Erik Jan de Wit Sent: Tuesday, July 07, 2015 2:17 AM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] cordova push plugin.xml namespace Right, good find! I've created a PR for this?https://github.com/aerogear/aerogear-cordova-push/pull/72 maybe you can try it out? cordova plugin add?https://github.com/edewit/aerogear-pushplugin-cordova\#namespace-fix On Tue, Jul 7, 2015 at 2:59 AM, Kelvin Lunsford wrote: Can someone please modify plugin.xml so the xmlns:android namespace attribute is in the top-level element as specified in the plugin.xml documentation (https://cordova.apache.org/docs/en/5.1.1/plugin_ref_spec.md.html), and take the xmlns:android attributes out of the lower elements. If the namespace is not changed problems will occur when installing the push plugin along with any other plugin containing one of the push plugins android permissions (e.g. cordova-plugin-contacts uses GET_ACCOUNTS, cordova-plugin-wakeuptimer uses WAKE_LOCK). Cordova CLI can deal with the same android permission used by multiple plugins but will install an invalid extra copy of a permission if it includes a xmlns:android attribute. The android ACCESS_NETWORK_STATE permission was removed by aerogear in the latest release because of AGCORDOVA-72.? The cause of the AGCORDOVA-72 problem was most likely the namespace problem.? The permission should not have been removed. - Kelvin _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Cheers, ? ? ? ?Erik Jan From edewit at redhat.com Wed Jul 8 03:57:46 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Wed, 8 Jul 2015 09:57:46 +0200 Subject: [Aerogear-users] cordova push plugin.xml namespace In-Reply-To: <32c06ebf8b1c44cd9a7cc5582b8366f6@stantz.qantel.com> References: <9c821adb943649a8aed9d60b38129d2b@stantz.qantel.com> <32c06ebf8b1c44cd9a7cc5582b8366f6@stantz.qantel.com> Message-ID: fixed On Tue, Jul 7, 2015 at 11:43 PM, Kelvin Lunsford wrote: > Thanks Erik, > > The latest commit should fix the permission problem I was seeing. > > The plugin.xml file still has unneeded xmlns:android namespace attributes > in elements on lines 35, 38, and 39. > > - Kelvin > > > ------------------------------------------------------------------------------------ > > From: aerogear-users-bounces at lists.jboss.org [mailto: > aerogear-users-bounces at lists.jboss.org] On Behalf Of Erik Jan de Wit > Sent: Tuesday, July 07, 2015 2:17 AM > To: aerogear-users at lists.jboss.org > Subject: Re: [Aerogear-users] cordova push plugin.xml namespace > > Right, good find! I've created a PR for this > https://github.com/aerogear/aerogear-cordova-push/pull/72 maybe you can > try it out? > > cordova plugin add > https://github.com/edewit/aerogear-pushplugin-cordova\#namespace-fix > > On Tue, Jul 7, 2015 at 2:59 AM, Kelvin Lunsford wrote: > Can someone please modify plugin.xml so the xmlns:android namespace > attribute is in the top-level element as specified in the plugin.xml > documentation ( > https://cordova.apache.org/docs/en/5.1.1/plugin_ref_spec.md.html), and > take the xmlns:android attributes out of the lower elements. > > If the namespace is not changed problems will occur when installing the > push plugin along with any other plugin containing one of the push plugins > android permissions (e.g. cordova-plugin-contacts uses GET_ACCOUNTS, > cordova-plugin-wakeuptimer uses WAKE_LOCK). > > Cordova CLI can deal with the same android permission used by multiple > plugins but will install an invalid extra copy of a permission if it > includes a xmlns:android attribute. > > The android ACCESS_NETWORK_STATE permission was removed by aerogear in the > latest release because of AGCORDOVA-72. The cause of the AGCORDOVA-72 > problem was most likely the namespace problem. The permission should not > have been removed. > > - Kelvin > > > _______________________________________________ > 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 > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150708/2bd876b7/attachment.html From edewit at redhat.com Wed Jul 8 03:58:12 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Wed, 8 Jul 2015 09:58:12 +0200 Subject: [Aerogear-users] cordova push plugin.xml namespace In-Reply-To: References: <9c821adb943649a8aed9d60b38129d2b@stantz.qantel.com> <32c06ebf8b1c44cd9a7cc5582b8366f6@stantz.qantel.com> Message-ID: thanks On Wed, Jul 8, 2015 at 9:57 AM, Erik Jan de Wit wrote: > fixed > > On Tue, Jul 7, 2015 at 11:43 PM, Kelvin Lunsford > wrote: > >> Thanks Erik, >> >> The latest commit should fix the permission problem I was seeing. >> >> The plugin.xml file still has unneeded xmlns:android namespace attributes >> in elements on lines 35, 38, and 39. >> >> - Kelvin >> >> >> ------------------------------------------------------------------------------------ >> >> From: aerogear-users-bounces at lists.jboss.org [mailto: >> aerogear-users-bounces at lists.jboss.org] On Behalf Of Erik Jan de Wit >> Sent: Tuesday, July 07, 2015 2:17 AM >> To: aerogear-users at lists.jboss.org >> Subject: Re: [Aerogear-users] cordova push plugin.xml namespace >> >> Right, good find! I've created a PR for this >> https://github.com/aerogear/aerogear-cordova-push/pull/72 maybe you can >> try it out? >> >> cordova plugin add >> https://github.com/edewit/aerogear-pushplugin-cordova\#namespace-fix >> >> On Tue, Jul 7, 2015 at 2:59 AM, Kelvin Lunsford >> wrote: >> Can someone please modify plugin.xml so the xmlns:android namespace >> attribute is in the top-level element as specified in the plugin.xml >> documentation ( >> https://cordova.apache.org/docs/en/5.1.1/plugin_ref_spec.md.html), and >> take the xmlns:android attributes out of the lower elements. >> >> If the namespace is not changed problems will occur when installing the >> push plugin along with any other plugin containing one of the push plugins >> android permissions (e.g. cordova-plugin-contacts uses GET_ACCOUNTS, >> cordova-plugin-wakeuptimer uses WAKE_LOCK). >> >> Cordova CLI can deal with the same android permission used by multiple >> plugins but will install an invalid extra copy of a permission if it >> includes a xmlns:android attribute. >> >> The android ACCESS_NETWORK_STATE permission was removed by aerogear in >> the latest release because of AGCORDOVA-72. The cause of the AGCORDOVA-72 >> problem was most likely the namespace problem. The permission should not >> have been removed. >> >> - Kelvin >> >> >> _______________________________________________ >> 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 >> > > > > -- > Cheers, > Erik Jan > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150708/4c7eea49/attachment-0001.html From matzew at apache.org Wed Jul 8 05:20:21 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 8 Jul 2015 11:20:21 +0200 Subject: [Aerogear-users] UnifiedPush Server - roadmap Message-ID: Hello folks, on the DEV list there is a thread about the mid term roadmap: http://lists.jboss.org/pipermail/aerogear-dev/2015-July/011789.html Feel free to jump in and help planing the next versions of our community project! Thanks! -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150708/072e105d/attachment.html From matzew at apache.org Wed Jul 8 06:38:56 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 8 Jul 2015 12:38:56 +0200 Subject: [Aerogear-users] Fwd: [aerogear-dev] What's new in AeroGear? In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Daniel Passos Date: Wed, Jul 8, 2015 at 1:10 AM Subject: [aerogear-dev] What's new in AeroGear? To: aerogear-dev at lists.jboss.org Android We started drop support for Java 6 https://issues.jboss.org/browse/AGDROID-434 We are planning our new release 3.0.0 https://issues.jboss.org/browse/AGDROID/fixforversion/12327585 We started move our tests to JUnit 4 https://issues.jboss.org/browse/AGDROID-420 iOS We?ve been busy this week adding iOS7 support for our Swift libraries: aerogear-ios-http and aerogear-ios-oauth2 Some planning for iOS 3.0.0 release is also going on, visit our JIRA for more details: https://issues.jboss.org/browse/AGIOS/fixforversion/12326644 Enjoy!!! ? -- -- Passos _______________________________________________ aerogear-dev mailing list aerogear-dev at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-dev -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150708/1947889a/attachment.html From fabio.turizo at gmail.com Wed Jul 8 19:35:23 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Wed, 08 Jul 2015 23:35:23 +0000 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build Message-ID: 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150708/4f46d2ef/attachment.html From edewit at redhat.com Thu Jul 9 01:54:03 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Thu, 9 Jul 2015 07:54:03 +0200 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: 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 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150709/2d4eea37/attachment.html From matzew at apache.org Thu Jul 9 15:44:45 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 9 Jul 2015 21:44:45 +0200 Subject: [Aerogear-users] [Tutorial] OAuth 2.0 with Swift Message-ID: Hi! I just noticed that today Corinne's tutorial on "OAuth 2.0 with Swift " got published at the famous 'raywenderlich' site: http://www.raywenderlich.com/99431/oauth-2-with-swift-tutorial Even better her article gives our AeroGear APIs a nice visibility hook :-) Congrats on getting the article published at Ray Wenderlich, Corinne! -Matthias -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150709/f36f3496/attachment.html From fabio.turizo at gmail.com Thu Jul 9 16:55:59 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Thu, 09 Jul 2015 20:55:59 +0000 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: 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: ** 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 > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150709/a3f18627/attachment-0001.html From edewit at redhat.com Fri Jul 10 04:56:04 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Fri, 10 Jul 2015 10:56:04 +0200 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: 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 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: > > ** > > 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 >> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150710/8a7d428c/attachment.html From fabio.turizo at gmail.com Fri Jul 10 10:14:13 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Fri, 10 Jul 2015 14:14:13 +0000 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: 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.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 > 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: >> >> ** >> >> 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 >>> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150710/7482b8bc/attachment-0001.html From dpassos at redhat.com Tue Jul 14 10:13:14 2015 From: dpassos at redhat.com (Daniel Passos) Date: Tue, 14 Jul 2015 11:13:14 -0300 Subject: [Aerogear-users] What's new in AeroGear? Message-ID: Hi all, Here is a community update: Android AeroGear Android 3.0 - Roadmap http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-AeroGear-Android-3-0-Roadmap-td11933.html Summers is working in a gradle plugin for AeroGear Android. It is part of the annotations stuff, mostly experimenting on things while we wait for GCM 3.0 https://github.com/secondsun/aerogear-android-plugin ? -- -- Passos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150714/0ee5213b/attachment.html From fabio.turizo at gmail.com Wed Jul 15 10:31:21 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Wed, 15 Jul 2015 14:31:21 +0000 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: 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 > 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.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 >> 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: >>> >>> ** >>> >>> 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 >>>> 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 >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150715/137965ff/attachment.html From edewit at redhat.com Fri Jul 17 04:43:40 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Fri, 17 Jul 2015 10:43:40 +0200 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: 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 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 >> 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.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 >>> 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: >>>> >>>> *>>> 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 >>>>> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150717/de03faa1/attachment-0001.html From fabio.turizo at gmail.com Fri Jul 17 09:24:22 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Fri, 17 Jul 2015 13:24:22 +0000 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: 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 > 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 >>> 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.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 >>>> 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: >>>>> >>>>> *>>>> 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 >>>>>> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150717/27c24a2d/attachment.html From edewit at redhat.com Fri Jul 17 09:54:41 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Fri, 17 Jul 2015 15:54:41 +0200 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: 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 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 >> 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 >>>> 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.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 >>>>> 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: >>>>>> >>>>>> *>>>>> 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 >>>>>> > 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 From fabio.turizo at gmail.com Fri Jul 17 10:16:24 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Fri, 17 Jul 2015 14:16:24 +0000 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: 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 at 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 > > https://github.com/aerogear/aerogear-cordova-push/releases/tag/1.0.4 > > On Fri, Jul 17, 2015 at 3:24 PM, Fabio Turizo > 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 >>> 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 >>>>> 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.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 >>>>> > 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: >>>>>>> >>>>>>> *>>>>>> 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 > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150717/b29815f2/attachment.html From edewit at redhat.com Fri Jul 17 18:46:01 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Sat, 18 Jul 2015 00:46:01 +0200 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: the newer (2.x) version introduces some new functionality like metrics and is compatible with the newer UPS On Fri, Jul 17, 2015 at 4:16 PM, Fabio Turizo 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 at 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 >> >> https://github.com/aerogear/aerogear-cordova-push/releases/tag/1.0.4 >> >> On Fri, Jul 17, 2015 at 3:24 PM, Fabio Turizo >> 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 >>>> 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 >>>>>> 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.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: >>>>>>>> >>>>>>>> *>>>>>>> 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 >> _______________________________________________ >> 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/20150718/7eb29831/attachment-0001.html From alan10fm at gmail.com Fri Jul 17 12:56:01 2015 From: alan10fm at gmail.com (alan10fm) Date: Fri, 17 Jul 2015 09:56:01 -0700 (MST) Subject: [Aerogear-users] Issues unregistering from server Message-ID: <1437152161375-140.post@n5.nabble.com> Hi everybody. I am making an android app using unified push server and Openshift. I am using the code in the next link to register my devices https://aerogear.org/docs/guides/aerogear-android/push/ the register works good and i can receive push notification. My problem is when i want to unregister the device, when i register the device and i never close the app and i unregister the device it works but my issue is when i register my device and close the app, after relaunch the app when i try to unregister the device the app brokes because of a null pointer exception in this line registrar.unregister(getApplicationContext(), new Callback() because the registar object is null I have made a lot of combinations to recover the registar object but anything works the server returns me a 404 code error. In this link is my code: https://stackoverflow.com/questions/31363464/unregister-devices-aerogear I will appreciate any help with this. -- -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Issues-unregistering-from-server-tp140.html Sent from the aerogear-users mailing list archive at Nabble.com. From supittma at redhat.com Mon Jul 20 09:49:43 2015 From: supittma at redhat.com (Summers Pittman) Date: Mon, 20 Jul 2015 09:49:43 -0400 Subject: [Aerogear-users] Issues unregistering from server In-Reply-To: <1437152161375-140.post@n5.nabble.com> References: <1437152161375-140.post@n5.nabble.com> Message-ID: 1) You should be creating the PushRegistrar object in a static block in your activity OR in the onCreate method of your Application (also make sure you have subclassed application and set that class to the name property of your application in your AndroidManifest.) 2) You need to also make sure that register() is called before unregister(). If Android kills your application you will need to call register to call unregister. It is a bit counter intuitive but it keeps your registration state in sync with GCM so that you are properly unregistered. 3) Do you have a github we can take a look at with the project in it? On Fri, Jul 17, 2015 at 12:56 PM, alan10fm wrote: > Hi everybody. > > I am making an android app using unified push server and Openshift. > I am using the code in the next link to register my devices > https://aerogear.org/docs/guides/aerogear-android/push/ > the register works good and i can receive push notification. > My problem is when i want to unregister the device, when i register the > device and i never close the app and i unregister the device it works but > my > issue is when i register my device and close the app, after relaunch the > app > when i try to unregister the device the app brokes because of a null > pointer > exception in this line > registrar.unregister(getApplicationContext(), new Callback() > because the registar object is null > > I have made a lot of combinations to recover the registar object but > anything works the server returns me a 404 code error. > In this link is my code: > https://stackoverflow.com/questions/31363464/unregister-devices-aerogear > > I will appreciate any help with this. > -- > > > > > -- > View this message in context: > http://aerogear-users.1116366.n5.nabble.com/Issues-unregistering-from-server-tp140.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150720/69e5541d/attachment.html From alan10fm at gmail.com Mon Jul 20 09:54:56 2015 From: alan10fm at gmail.com (alan10fm) Date: Mon, 20 Jul 2015 06:54:56 -0700 (MST) Subject: [Aerogear-users] Issues unregistering from server In-Reply-To: References: <1437152161375-140.post@n5.nabble.com> Message-ID: <1437400496287-143.post@n5.nabble.com> hi. Thank you for the answer. I had tried that before, call first the register method and then the unregister, and that works good, it is just that I thought that was not the best way to solve it, but it looks like it is. So I think that solves my problem. Thank you -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Issues-unregistering-from-server-tp140p143.html Sent from the aerogear-users mailing list archive at Nabble.com. From dpassos at redhat.com Mon Jul 20 16:13:50 2015 From: dpassos at redhat.com (Daniel Passos) Date: Mon, 20 Jul 2015 17:13:50 -0300 Subject: [Aerogear-users] What's new in AeroGear? Message-ID: iOS AeroGear Swift libs are progressing towards more platforms support. Last week, aerogear-ios-jsonsz has lower its minimal target deployment to iOS7 and a new swift-2.0 branch is available for iOS9 (beta3) support. What?s coming next? All AeroGear Swift libs will have a swift-2.0 branch (regularly rebased) until iOS9 is offically released, and will be finally merged in master. Android - 3.x roadmap proposal/discussion - http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-AeroGear-Android-3-0-Roadmap-td11933.html - aerogear-android-plugin discussion - http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-AGDroid-3-0-improvements-td11915.html - secondsun?s test repo : https://github.com/secondsun/aerogear-android-plugin - Push improvments - MERGED Migrating to InstanceID ( https://github.com/aerogear/aerogear-android-push/pull/43) - PR issued for Implementing InstanceIDListenerService ( https://github.com/aerogear/aerogear-android-push/pull/44) - GCM 3.0 JIRA should be done in time for UPS 1.2 ( https://issues.jboss.org/browse/AGDROID-433) UnifiedPush - Beta-3 release to help stabilization: http://lists.jboss.org/pipermail/aerogear-dev/2015-July/011874.html - Openshift update, using 1.1.0: https://github.com/aerogear/openshift-origin-cartridge-aerogear-push/pull/20 - Migrator work in progress Javascript - Small bug resolved in the Unified Push node sender - https://issues.jboss.org/browse/AGJS-293 - 0.7.1 released on npm ? -- -- Passos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150720/9cab6865/attachment.html From edewit at redhat.com Wed Jul 22 11:26:31 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Wed, 22 Jul 2015 17:26:31 +0200 Subject: [Aerogear-users] Windows support aerogear push plugin Message-ID: Hi, As Fabio Turizo pointed out [1] it would be nice if the push plugin also supported cordova windows store apps. I'm pleased to announce that there is a PR that enables this functionality [2]. If you feel bold you can try it out. [1] http://aerogear-users.1116366.n5.nabble.com/Aerogear-users-Using-Aerogear-PushPlugin-with-Phonegap-Build-td128.html [2] https://github.com/aerogear/aerogear-cordova-push/pull/75 [3] https://www.dropbox.com/s/lr9dfwkbfk907u4/Screenshot%202015-07-22%2016.27.32.png?dl=0 -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150722/cffa0bc1/attachment.html From delkant at gmail.com Thu Jul 23 13:12:42 2015 From: delkant at gmail.com (Rodrigo Del Canto) Date: Thu, 23 Jul 2015 13:12:42 -0400 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: 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 wrote: > the newer (2.x) version introduces some new functionality like metrics and > is compatible with the newer UPS > > On Fri, Jul 17, 2015 at 4:16 PM, Fabio Turizo > 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 at 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 >>> >>> https://github.com/aerogear/aerogear-cordova-push/releases/tag/1.0.4 >>> >>> On Fri, Jul 17, 2015 at 3:24 PM, Fabio Turizo >>> 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 >>>>> 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 >>>>>>> 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.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: >>>>>>>>> >>>>>>>>> *>>>>>>>> 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 >>> _______________________________________________ >>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150723/7036573a/attachment-0001.html From edewit at redhat.com Fri Jul 24 03:13:10 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Fri, 24 Jul 2015 09:13:10 +0200 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: These instructions should work regardless of the platform: https://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/ Or do you have some specific error? On Thu, Jul 23, 2015 at 7:12 PM, Rodrigo Del Canto 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 > wrote: > >> the newer (2.x) version introduces some new functionality like metrics >> and is compatible with the newer UPS >> >> On Fri, Jul 17, 2015 at 4:16 PM, Fabio Turizo >> 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 at 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 >>>> >>>> https://github.com/aerogear/aerogear-cordova-push/releases/tag/1.0.4 >>>> >>>> On Fri, Jul 17, 2015 at 3:24 PM, Fabio Turizo >>>> 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 >>>>> > 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 >>>>>>>> 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.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: >>>>>>>>>> >>>>>>>>>> *>>>>>>>>> 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 >>>> _______________________________________________ >>>> 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/20150724/67bb0c0f/attachment-0001.html From matzew at apache.org Fri Jul 24 04:58:27 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Fri, 24 Jul 2015 10:58:27 +0200 Subject: [Aerogear-users] UPS 1.1.0-beta.3 and Openshift release Message-ID: Hello folks! On our way to 1.1.0.Final, we have released another beta release. This release contains a new Keycloak version (1.3.1) and a lot of small improvements. List of JIRAs https://issues.jboss.org/browse/AGPUSH/fixforversion/12326301 The release has been uploaded to Maven Central: http://search.maven.org/#search%7Cga%7C1%7Cunifiedpush It's, as usually, available on github too: https://github.com/aerogear/aerogear-unifiedpush-server/releases/tag/1.1.0-beta.3 Openshift update: As we move towards 1.1.0, the Openshift cartridge has been updated too. It's the first time 1.1.0 is available on Openshift: https://github.com/aerogear/openshift-origin-cartridge-aerogear-push#installation Greetings, Matthias On Fri, Jul 17, 2015 at 4:18 PM, Matthias Wessendorf wrote: > Hi guys, > > > as promissed, here are some updates on Openshift for 1.1.0-beta.3: > > rhc create-app --gear-size medium --no-git YOUR_NAME " > https://cartreflect-claytondev.rhcloud.com/reflect?github=matzew/openshift-origin-cartridge-aerogear-push&commit=653439039d69cd84b05dbc12506cf7fe2b146351 > " > > PR: > https://github.com/aerogear/openshift-origin-cartridge-aerogear-push/pull/20/files > > -Matthias > > On Fri, Jul 17, 2015 at 9:59 AM, Matthias Wessendorf > wrote: > >> Hi team, >> >> here is another beta release for the UPS 1.1.0, to stablize before we >> will hit our final: >> Details about the containing fixes and enhancements are in JIRA: >> https://issues.jboss.org/browse/AGPUSH/fixforversion/12326301/ >> >> Please test the staged release: >> >> https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-6061/ >> >> Like w/ the previous beta, please make sure you use a FULL profile >> WildFly or EAP server for tests, since we now have JMS hooks ;-) >> (See README for details) >> >> On Tuesday next week I'd like to press the button to release it to the >> wild. >> >> PS: I will be working on updating our Openshift cartridge later today... >> >> -M >> >> >> >> >> On Thu, Jul 16, 2015 at 5:01 PM, Sebastien Blanc >> wrote: >> >>> Ship it ! >>> >>> On Thu, Jul 16, 2015 at 4:59 PM, Matthias Wessendorf >>> wrote: >>> >>>> Hi, >>>> >>>> we had a few changes since the last beta: >>>> >>>> >>>> https://issues.jboss.org/issues/?jql=project%20%3D%20AGPUSH%20AND%20fixVersion%20%3D%20ups-1.1.0.final%20AND%20status%20%3D%20Resolved%20ORDER%20BY%20priority%20DESC >>>> >>>> I'd like to run another beta. >>>> >>>> The DB migrator is not yet there, but Dan and QMX are close on this. >>>> yay! >>>> >>>> >>>> So, in the spirit of release often / release early I see zero reasons >>>> to not do another beta. >>>> >>>> >>>> Any thoughts? >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> Matthias Wessendorf >>>> >>>> blog: http://matthiaswessendorf.wordpress.com/ >>>> sessions: http://www.slideshare.net/mwessendorf >>>> twitter: http://twitter.com/mwessendorf >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> sessions: http://www.slideshare.net/mwessendorf >> twitter: http://twitter.com/mwessendorf >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150724/d0f9ea50/attachment.html From delkant at gmail.com Fri Jul 24 10:35:38 2015 From: delkant at gmail.com (Rodrigo Del Canto) Date: Fri, 24 Jul 2015 10:35:38 -0400 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: Hi Erik, Thanks for your reply. Actually I'm experiencing some issues, This is my configuration: 1. mac os x 2. $ cordova -v 5.1.1 3. cordova plugin add https://github.com/aerogear/aerogear-pushplugin-cordova.git 4. I import to eclipse the android project to build it there. and I got these dependencies errors: - The import android.support cannot be resolved - The import org.jboss.aerogear.android cannot be resolved On Fri, Jul 24, 2015 at 3:13 AM, Erik Jan de Wit wrote: > These instructions should work regardless of the platform: > > https://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/ > > Or do you have some specific error? > > On Thu, Jul 23, 2015 at 7:12 PM, Rodrigo Del Canto > 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 >> wrote: >> >>> the newer (2.x) version introduces some new functionality like metrics >>> and is compatible with the newer UPS >>> >>> On Fri, Jul 17, 2015 at 4:16 PM, Fabio Turizo >>> 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 at 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 >>>>> >>>>> https://github.com/aerogear/aerogear-cordova-push/releases/tag/1.0.4 >>>>> >>>>> On Fri, Jul 17, 2015 at 3:24 PM, Fabio Turizo >>>>> 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 >>>>>>>>> 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.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: >>>>>>>>>>> >>>>>>>>>>> *>>>>>>>>>> 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 >>>>> _______________________________________________ >>>>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150724/1e50ca69/attachment-0001.html From edewit at redhat.com Fri Jul 24 12:14:30 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Fri, 24 Jul 2015 18:14:30 +0200 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: Hi Rodrigo, You don't need to use import it in eclipse you can build and deploy from the command line with cordova cli cordova emulate But if you really want to open it in an IDE I would recommend using Android Studio as we use gradle for building and fetching the dependencies. On Fri, Jul 24, 2015 at 4:35 PM, Rodrigo Del Canto wrote: > Hi Erik, > > Thanks for your reply. > > Actually I'm experiencing some issues, > > This is my configuration: > > 1. mac os x > > 2. $ cordova -v > > 5.1.1 > 3. cordova plugin add > https://github.com/aerogear/aerogear-pushplugin-cordova.git > > 4. I import to eclipse the android project to build it there. > > and I got these dependencies errors: > > - The import android.support cannot be resolved > > - The import org.jboss.aerogear.android cannot be resolved > > > On Fri, Jul 24, 2015 at 3:13 AM, Erik Jan de Wit > wrote: > >> These instructions should work regardless of the platform: >> >> https://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/ >> >> Or do you have some specific error? >> >> On Thu, Jul 23, 2015 at 7:12 PM, Rodrigo Del Canto >> 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 >>> wrote: >>> >>>> the newer (2.x) version introduces some new functionality like metrics >>>> and is compatible with the newer UPS >>>> >>>> On Fri, Jul 17, 2015 at 4:16 PM, Fabio Turizo >>>> 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 at 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 >>>>>> >>>>>> https://github.com/aerogear/aerogear-cordova-push/releases/tag/1.0.4 >>>>>> >>>>>> On Fri, Jul 17, 2015 at 3:24 PM, Fabio Turizo >>>>> > 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 >>>>>>>>>> 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.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: >>>>>>>>>>>> >>>>>>>>>>>> *>>>>>>>>>>> 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 >>>>>>>>>>>> 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 >>>>>> _______________________________________________ >>>>>> 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/20150724/036db295/attachment-0001.html From corinnekrych at gmail.com Mon Jul 27 12:09:14 2015 From: corinnekrych at gmail.com (Corinne Krych) Date: Mon, 27 Jul 2015 18:09:14 +0200 Subject: [Aerogear-users] What's new in AeroGear? Message-ID: Android AGDroid 3.0 work continues. - aerogear-android-push - We?ve impletmented InstanceIDListener for agdroid-push in master - Topic messaging implementation is here : https://github.com/secondsun/aerogear-android-push/tree/AGDROID-470-TOPIC-MESSAGING - Keep a lookout for a PR with this and UPS sometimes this week. - Someone on StackOverflow has been asking about two way messaging : http://stackoverflow.com/questions/31518805/is-it-possible-to-receive-a-message-from-the-client-on-aerogear/31541069#31541069 - There?s a good discussion on topic APIs on the Mailing list : http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-Android-topic-messaging-enhancements-AGDROID-470-td11997.html Stuff from Summers? mad mind - aerogear-android-store - https://github.com/secondsun/aerogear-android-store/tree/content_provider - AeroGear patterns for using ContentProviders with Store implementations. - Still a work in progress doesn?t even compile right now. - aerogear-android-plugin - https://github.com/secondsun/aerogear-android-plugin - Ultimate goal is to provide automated checks, annotation processing, etc for the AeroGear library in Maven and Gradle - Right now the code can only validate that the broadcase receiver for push messages is set up correctly. iOS lovers Moving forward in Swift2 / iOS9 adaption, aerogear-io-oauth2 has now its ?swift-2.0? branch. Note that we moved to Xcode7 beta4 Swift 2 syntax. This week will bring companion demos repository aerogear-ios-cookbook to Swift 2 too. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150727/64108508/attachment.html From matzew at apache.org Tue Jul 28 01:39:13 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 28 Jul 2015 07:39:13 +0200 Subject: [Aerogear-users] What's new in AeroGear? In-Reply-To: References: Message-ID: UnifiedPush Server Moving towards 1.1.0.Final, the beta-3 release is out and our Openshift cartridge has been updated to use this version as well. On Mon, Jul 27, 2015 at 6:09 PM, Corinne Krych wrote: > Android AGDroid 3.0 work continues. > > - aerogear-android-push > - We?ve impletmented InstanceIDListener for agdroid-push in master > - Topic messaging implementation is here : > https://github.com/secondsun/aerogear-android-push/tree/AGDROID-470-TOPIC-MESSAGING > - Keep a lookout for a PR with this and UPS sometimes this week. > - Someone on StackOverflow has been asking about two way messaging : > > http://stackoverflow.com/questions/31518805/is-it-possible-to-receive-a-message-from-the-client-on-aerogear/31541069#31541069 > - There?s a good discussion on topic APIs on the Mailing list : > http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-Android-topic-messaging-enhancements-AGDROID-470-td11997.html > > Stuff from Summers? mad mind > > - aerogear-android-store > - > https://github.com/secondsun/aerogear-android-store/tree/content_provider > - AeroGear patterns for using ContentProviders with Store > implementations. > - Still a work in progress doesn?t even compile right now. > - aerogear-android-plugin > - https://github.com/secondsun/aerogear-android-plugin > - Ultimate goal is to provide automated checks, annotation > processing, etc for the AeroGear library in Maven and Gradle > - Right now the code can only validate that the broadcase > receiver for push messages is set up correctly. > > iOS lovers > > Moving forward in Swift2 / iOS9 adaption, aerogear-io-oauth2 has now its > ?swift-2.0? branch. Note that we moved to Xcode7 beta4 Swift 2 syntax. This > week will bring companion demos repository aerogear-ios-cookbook to Swift 2 > too. > ? > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150728/9b575b4b/attachment.html From Matthias.Bourillon at saint-gobain.com Wed Jul 29 12:34:29 2015 From: Matthias.Bourillon at saint-gobain.com (Bourillon, Matthias) Date: Wed, 29 Jul 2015 16:34:29 +0000 Subject: [Aerogear-users] Android SDK - Token not renewed when unregistering/registering Message-ID: <143D1BBAE1FDE0459ADC21668AADEFC5844C3F9E@EXMB2EU22.za.if.atcsg.net> Hello, I have used Aerogear Android SDK (2.2.0) in a native Android App to communicate with an Aerogear Unified Push server and to use Google Cloud Messaging. After several tests we have identified an issue with token management : - register() successfully generates a token A against GCM and registration is OK on Aerogear server side - unregister() successfully invalidates the token A against GCM ("NotRegistered" is generated on GCM side when re-using the token) and unregistration is OK on Aerogear server side - when calling register() back, registration happens against Aerogear server but with token A which has been invalidated by GCM After analyzing the SDK source code, we realized that the token is saved in Android Shared Preferences but this token is never removed from shared preferences when calling unregister()! As a consequence, when a user unregisters/registers to a variant, the "old" token is not renewed and notification sending fails since Google has invalidated this token! We quickfixed the AeroGearGCMPushRegistrar class by adding a following line in the unregister() method : AeroGearGCMPushRegistrar.this.setRegistrationId(context, ""); However, I am very surprised that this issue was never seen before. Am I using the registration/unregistration methods incorrectly? How can I force the token re-generation against GCM? Thanks, Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150729/dfdca9a3/attachment-0001.html From supittma at redhat.com Wed Jul 29 13:48:21 2015 From: supittma at redhat.com (Summers Pittman) Date: Wed, 29 Jul 2015 13:48:21 -0400 Subject: [Aerogear-users] Android SDK - Token not renewed when unregistering/registering In-Reply-To: <143D1BBAE1FDE0459ADC21668AADEFC5844C3F9E@EXMB2EU22.za.if.atcsg.net> References: <143D1BBAE1FDE0459ADC21668AADEFC5844C3F9E@EXMB2EU22.za.if.atcsg.net> Message-ID: Matthias, Hey, thanks for this we will work something out asap. We'll let you know as soon as we get a fix in place and have a package staged for you to test. On Wed, Jul 29, 2015 at 12:34 PM, Bourillon, Matthias < Matthias.Bourillon at saint-gobain.com> wrote: > Hello, > > I have used Aerogear Android SDK (2.2.0) in a native Android App to > communicate with an Aerogear Unified Push server and to use Google Cloud > Messaging. > > > > After several tests we have identified an issue with token management : > > - register() successfully generates a token *A* against GCM and > registration is OK on Aerogear server side > > - unregister() successfully invalidates the token *A* against > GCM (?NotRegistered? is generated on GCM side when re-using the token) and > unregistration is OK on Aerogear server side > > - when calling register() back, registration happens against > Aerogear server but with *token A* which has been invalidated by GCM > > > > After analyzing the SDK source code, we realized that the token is saved > in Android Shared Preferences but this token is never removed from shared > preferences when calling unregister()! > > > > As a consequence, when a user unregisters/registers to a variant*, the > ?old? token is not renewed* and notification sending fails since Google > has invalidated this token! > > > > We quickfixed the AeroGearGCMPushRegistrar class by adding a following > line in the unregister() method : > > > > AeroGearGCMPushRegistrar.this.setRegistrationId(context, ""); > > > > However, I am very surprised that this issue was never seen before. > > Am I using the registration/unregistration methods incorrectly? How can I > force the token re-generation against GCM? > > > > Thanks, > > Matthias > > > > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150729/de0115f6/attachment.html From supittma at redhat.com Wed Jul 29 18:17:01 2015 From: supittma at redhat.com (Summers Pittman) Date: Wed, 29 Jul 2015 18:17:01 -0400 Subject: [Aerogear-users] Android SDK - Token not renewed when unregistering/registering In-Reply-To: References: <143D1BBAE1FDE0459ADC21668AADEFC5844C3F9E@EXMB2EU22.za.if.atcsg.net> Message-ID: Matthias, https://github.com/aerogear/aerogear-android-push/pull/46 If would can, can you test this PR against your code and confirm the issue is fixed for you? If you don't want to build the project (and you probably don't need to) I have attached the aar for the PR to this post. On Wed, Jul 29, 2015 at 1:48 PM, Summers Pittman wrote: > Matthias, > > Hey, thanks for this we will work something out asap. We'll let you know > as soon as we get a fix in place and have a package staged for you to test. > > > > On Wed, Jul 29, 2015 at 12:34 PM, Bourillon, Matthias < > Matthias.Bourillon at saint-gobain.com> wrote: > >> Hello, >> >> I have used Aerogear Android SDK (2.2.0) in a native Android App to >> communicate with an Aerogear Unified Push server and to use Google Cloud >> Messaging. >> >> >> >> After several tests we have identified an issue with token management : >> >> - register() successfully generates a token *A* against GCM and >> registration is OK on Aerogear server side >> >> - unregister() successfully invalidates the token *A* against >> GCM (?NotRegistered? is generated on GCM side when re-using the token) and >> unregistration is OK on Aerogear server side >> >> - when calling register() back, registration happens against >> Aerogear server but with *token A* which has been invalidated by GCM >> >> >> >> After analyzing the SDK source code, we realized that the token is saved >> in Android Shared Preferences but this token is never removed from shared >> preferences when calling unregister()! >> >> >> >> As a consequence, when a user unregisters/registers to a variant*, the >> ?old? token is not renewed* and notification sending fails since Google >> has invalidated this token! >> >> >> >> We quickfixed the AeroGearGCMPushRegistrar class by adding a following >> line in the unregister() method : >> >> >> >> AeroGearGCMPushRegistrar.this.setRegistrationId(context, ""); >> >> >> >> However, I am very surprised that this issue was never seen before. >> >> Am I using the registration/unregistration methods incorrectly? How can I >> force the token re-generation against GCM? >> >> >> >> Thanks, >> >> Matthias >> >> >> >> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150729/d767c6a8/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: aerogear-android-push-2.2.1-SNAPSHOT.aar Type: application/octet-stream Size: 32540 bytes Desc: not available Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150729/d767c6a8/attachment-0001.obj From kelvin at qantel.com Wed Jul 29 21:23:29 2015 From: kelvin at qantel.com (Kelvin Lunsford) Date: Thu, 30 Jul 2015 01:23:29 +0000 Subject: [Aerogear-users] UPS push to IOS removes the badge Message-ID: <73b7e07608e140fc9ec4ecc7856d2f15@stantz.qantel.com> If UPS is given a push command with no "badge" value the IOS badge icon is being removed when the notification is received. Expected behavior is that the badge icon would be unchanged if no badge value is set. When USP receives a push command with no "badge" value it is sending APNS a "badge" value of -1. The Apple push payload spec says the badge icon is removed if the "badge" value is 0, and the icon is unchanged if there is no "badge" value. The spec does not say what happens if the "badge" value is less than zero. Tested devices are removing the badge icon when -1 is set. Please change UPS so no "badge" value is sent to APNS when the UPS command has no "badge" value. For example you could change the sendPushMessage function of APNsPushNotificationSender.java to: PayloadBuilder builder = APNS.newPayload() // adding recognized key values .alertBody(message.getAlert()) //.badge(message.getBadge()) // do not set badge here .sound(message.getSound()) .alertTitle(apns.getTitle()) .alertAction(apns.getAction()) .urlArgs(apns.getUrlArgs()) .category(apns.getActionCategory()) .localizedTitleKey(apns.getLocalizedTitleKey()); if (message.getBadge() >= 0) builder.badge(message.getBadge()); // only set badge if needed - Kelvin From Matthias.Bourillon at saint-gobain.com Thu Jul 30 06:15:48 2015 From: Matthias.Bourillon at saint-gobain.com (Bourillon, Matthias) Date: Thu, 30 Jul 2015 10:15:48 +0000 Subject: [Aerogear-users] Android SDK - Token not renewed when unregistering/registering In-Reply-To: References: <143D1BBAE1FDE0459ADC21668AADEFC5844C3F9E@EXMB2EU22.za.if.atcsg.net> Message-ID: <143D1BBAE1FDE0459ADC21668AADEFC5844C4483@EXMB2EU22.za.if.atcsg.net> Hello, After using pull #46 from Github into my local environment, I confirm that this fixes the issue I had. Are you going to provide any 2.2.1 jar file that we can include into our projects? Thanks, Matthias De : aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] De la part de Summers Pittman Envoy? : jeudi 30 juillet 2015 00:17 ? : aerogear-users at lists.jboss.org Objet : Re: [Aerogear-users] Android SDK - Token not renewed when unregistering/registering Matthias, https://github.com/aerogear/aerogear-android-push/pull/46 If would can, can you test this PR against your code and confirm the issue is fixed for you? If you don't want to build the project (and you probably don't need to) I have attached the aar for the PR to this post. On Wed, Jul 29, 2015 at 1:48 PM, Summers Pittman > wrote: Matthias, Hey, thanks for this we will work something out asap. We'll let you know as soon as we get a fix in place and have a package staged for you to test. On Wed, Jul 29, 2015 at 12:34 PM, Bourillon, Matthias > wrote: Hello, I have used Aerogear Android SDK (2.2.0) in a native Android App to communicate with an Aerogear Unified Push server and to use Google Cloud Messaging. After several tests we have identified an issue with token management : - register() successfully generates a token A against GCM and registration is OK on Aerogear server side - unregister() successfully invalidates the token A against GCM (?NotRegistered? is generated on GCM side when re-using the token) and unregistration is OK on Aerogear server side - when calling register() back, registration happens against Aerogear server but with token A which has been invalidated by GCM After analyzing the SDK source code, we realized that the token is saved in Android Shared Preferences but this token is never removed from shared preferences when calling unregister()! As a consequence, when a user unregisters/registers to a variant, the ?old? token is not renewed and notification sending fails since Google has invalidated this token! We quickfixed the AeroGearGCMPushRegistrar class by adding a following line in the unregister() method : AeroGearGCMPushRegistrar.this.setRegistrationId(context, ""); However, I am very surprised that this issue was never seen before. Am I using the registration/unregistration methods incorrectly? How can I force the token re-generation against GCM? Thanks, Matthias _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150730/268689d0/attachment.html From matzew at apache.org Thu Jul 30 06:38:59 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 30 Jul 2015 12:38:59 +0200 Subject: [Aerogear-users] UPS push to IOS removes the badge In-Reply-To: <73b7e07608e140fc9ec4ecc7856d2f15@stantz.qantel.com> References: <73b7e07608e140fc9ec4ecc7856d2f15@stantz.qantel.com> Message-ID: Hi Kevin, you mind sending a PR (pull request) to fix this bug? Sorry for it, its a pretty annoying issue for sure! -Matthias On Thursday, July 30, 2015, Kelvin Lunsford wrote: > If UPS is given a push command with no "badge" value the IOS badge icon is > being removed when the notification is received. Expected behavior is that > the badge icon would be unchanged if no badge value is set. > > When USP receives a push command with no "badge" value it is sending APNS > a "badge" value of -1. > > The Apple push payload spec says the badge icon is removed if the "badge" > value is 0, and the icon is unchanged if there is no "badge" value. The > spec does not say what happens if the "badge" value is less than zero. > > Tested devices are removing the badge icon when -1 is set. > > Please change UPS so no "badge" value is sent to APNS when the UPS command > has no "badge" value. > > For example you could change the sendPushMessage function of > APNsPushNotificationSender.java to: > > PayloadBuilder builder = APNS.newPayload() > // adding recognized key values > .alertBody(message.getAlert()) > //.badge(message.getBadge()) // do not set badge here > .sound(message.getSound()) > .alertTitle(apns.getTitle()) > .alertAction(apns.getAction()) > .urlArgs(apns.getUrlArgs()) > .category(apns.getActionCategory()) > .localizedTitleKey(apns.getLocalizedTitleKey()); > > if (message.getBadge() >= 0) > builder.badge(message.getBadge()); // only set badge if needed > > - Kelvin > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150730/ff176c81/attachment-0001.html From supittma at redhat.com Thu Jul 30 08:16:34 2015 From: supittma at redhat.com (Summers Pittman) Date: Thu, 30 Jul 2015 08:16:34 -0400 Subject: [Aerogear-users] Android SDK - Token not renewed when unregistering/registering In-Reply-To: <143D1BBAE1FDE0459ADC21668AADEFC5844C4483@EXMB2EU22.za.if.atcsg.net> References: <143D1BBAE1FDE0459ADC21668AADEFC5844C3F9E@EXMB2EU22.za.if.atcsg.net> <143D1BBAE1FDE0459ADC21668AADEFC5844C4483@EXMB2EU22.za.if.atcsg.net> Message-ID: We are planning on making a release to maven central soon (possibly by the end of next week). Stay tuned. On Thu, Jul 30, 2015 at 6:15 AM, Bourillon, Matthias < Matthias.Bourillon at saint-gobain.com> wrote: > Hello, > > After using pull #46 from Github into my local environment, I confirm that > this fixes the issue I had. > > Are you going to provide any 2.2.1 jar file that we can include into our > projects? > > > > Thanks, > > Matthias > > > > > > *De :* aerogear-users-bounces at lists.jboss.org [mailto: > aerogear-users-bounces at lists.jboss.org] *De la part de* Summers Pittman > *Envoy? :* jeudi 30 juillet 2015 00:17 > *? :* aerogear-users at lists.jboss.org > *Objet :* Re: [Aerogear-users] Android SDK - Token not renewed when > unregistering/registering > > > > Matthias, > > > > https://github.com/aerogear/aerogear-android-push/pull/46 > > > > If would can, can you test this PR against your code and confirm the issue > is fixed for you? If you don't want to build the project (and you probably > don't need to) I have attached the aar for the PR to this post. > > > > On Wed, Jul 29, 2015 at 1:48 PM, Summers Pittman > wrote: > > Matthias, > > > > Hey, thanks for this we will work something out asap. We'll let you know > as soon as we get a fix in place and have a package staged for you to test. > > > > > > > > On Wed, Jul 29, 2015 at 12:34 PM, Bourillon, Matthias < > Matthias.Bourillon at saint-gobain.com> wrote: > > Hello, > > I have used Aerogear Android SDK (2.2.0) in a native Android App to > communicate with an Aerogear Unified Push server and to use Google Cloud > Messaging. > > > > After several tests we have identified an issue with token management : > > - register() successfully generates a token *A* against GCM and > registration is OK on Aerogear server side > > - unregister() successfully invalidates the token *A* against > GCM (?NotRegistered? is generated on GCM side when re-using the token) and > unregistration is OK on Aerogear server side > > - when calling register() back, registration happens against > Aerogear server but with *token A* which has been invalidated by GCM > > > > After analyzing the SDK source code, we realized that the token is saved > in Android Shared Preferences but this token is never removed from shared > preferences when calling unregister()! > > > > As a consequence, when a user unregisters/registers to a variant*, the > ?old? token is not renewed* and notification sending fails since Google > has invalidated this token! > > > > We quickfixed the AeroGearGCMPushRegistrar class by adding a following > line in the unregister() method : > > > > AeroGearGCMPushRegistrar.this.setRegistrationId(context, ""); > > > > However, I am very surprised that this issue was never seen before. > > Am I using the registration/unregistration methods incorrectly? How can I > force the token re-generation against GCM? > > > > Thanks, > > Matthias > > > > > > > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150730/2afa370a/attachment.html From jesus90martin at gmail.com Thu Jul 30 09:27:59 2015 From: jesus90martin at gmail.com (=?UTF-8?B?SmVzw7pzIE1hcnTDrW4gR29uesOhbGV6?=) Date: Thu, 30 Jul 2015 15:27:59 +0200 Subject: [Aerogear-users] minsdkversion dependency Message-ID: Hi, I am using push plugin for cordova android and I have seen that it has a dependency about minimun android version, minsdkversion=16. Is it impossible to reduce this version?, I would like to include previus android versions in my app. thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150730/5f62e2ab/attachment.html From dpassos at redhat.com Thu Jul 30 09:38:28 2015 From: dpassos at redhat.com (Daniel Passos) Date: Thu, 30 Jul 2015 10:38:28 -0300 Subject: [Aerogear-users] minsdkversion dependency In-Reply-To: References: Message-ID: Hi Jes?s, Unfortunately no. Support Android <= 3.0 in a library is not a easy task. We had a lot of problem and we needed to do a lot of work around to fix some Android bugs. So we decided to bump the min version for 16 (Android >= 4.1) -- Passos On Thu, Jul 30, 2015 at 10:27 AM, Jes?s Mart?n Gonz?lez < jesus90martin at gmail.com> wrote: > Hi, > > I am using push plugin for cordova android and I have seen that it has a > dependency about minimun android version, minsdkversion=16. Is it > impossible to reduce this version?, I would like to include previus android > versions in my app. > > thank you > > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- -- Passos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150730/75fb03a3/attachment.html From jesus90martin at gmail.com Thu Jul 30 09:43:25 2015 From: jesus90martin at gmail.com (=?UTF-8?B?SmVzw7pzIE1hcnTDrW4gR29uesOhbGV6?=) Date: Thu, 30 Jul 2015 15:43:25 +0200 Subject: [Aerogear-users] minsdkversion dependency In-Reply-To: References: Message-ID: okey thank you! 2015-07-30 15:38 GMT+02:00 Daniel Passos : > Hi Jes?s, > > Unfortunately no. Support Android <= 3.0 in a library is not a easy task. > We had a lot of problem and we needed to do a lot of work around to fix > some Android bugs. So we decided to bump the min version for 16 (Android >= > 4.1) > > -- Passos > > On Thu, Jul 30, 2015 at 10:27 AM, Jes?s Mart?n Gonz?lez < > jesus90martin at gmail.com> wrote: > >> Hi, >> >> I am using push plugin for cordova android and I have seen that it has a >> dependency about minimun android version, minsdkversion=16. Is it >> impossible to reduce this version?, I would like to include previus android >> versions in my app. >> >> thank you >> >> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > > > -- > -- Passos > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Jes?s Mart?n Gonzalez Tel: +34 654420529 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150730/c30397a6/attachment.html From dpassos at redhat.com Thu Jul 30 10:00:57 2015 From: dpassos at redhat.com (Daniel Passos) Date: Thu, 30 Jul 2015 11:00:57 -0300 Subject: [Aerogear-users] Android SDK - Token not renewed when unregistering/registering In-Reply-To: References: <143D1BBAE1FDE0459ADC21668AADEFC5844C3F9E@EXMB2EU22.za.if.atcsg.net> <143D1BBAE1FDE0459ADC21668AADEFC5844C4483@EXMB2EU22.za.if.atcsg.net> Message-ID: Hi Matthias I've just send[1] it to our Nexus. I'll invite other to test it and if we don't get any other problem, I'll release it next Friday. [1] https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-5774/ -- Passos On Thu, Jul 30, 2015 at 9:16 AM, Summers Pittman wrote: > We are planning on making a release to maven central soon (possibly by the > end of next week). Stay tuned. > > On Thu, Jul 30, 2015 at 6:15 AM, Bourillon, Matthias < > Matthias.Bourillon at saint-gobain.com> wrote: > >> Hello, >> >> After using pull #46 from Github into my local environment, I confirm >> that this fixes the issue I had. >> >> Are you going to provide any 2.2.1 jar file that we can include into our >> projects? >> >> >> >> Thanks, >> >> Matthias >> >> >> >> >> >> *De :* aerogear-users-bounces at lists.jboss.org [mailto: >> aerogear-users-bounces at lists.jboss.org] *De la part de* Summers Pittman >> *Envoy? :* jeudi 30 juillet 2015 00:17 >> *? :* aerogear-users at lists.jboss.org >> *Objet :* Re: [Aerogear-users] Android SDK - Token not renewed when >> unregistering/registering >> >> >> >> Matthias, >> >> >> >> https://github.com/aerogear/aerogear-android-push/pull/46 >> >> >> >> If would can, can you test this PR against your code and confirm the >> issue is fixed for you? If you don't want to build the project (and you >> probably don't need to) I have attached the aar for the PR to this post. >> >> >> >> On Wed, Jul 29, 2015 at 1:48 PM, Summers Pittman >> wrote: >> >> Matthias, >> >> >> >> Hey, thanks for this we will work something out asap. We'll let you know >> as soon as we get a fix in place and have a package staged for you to test. >> >> >> >> >> >> >> >> On Wed, Jul 29, 2015 at 12:34 PM, Bourillon, Matthias < >> Matthias.Bourillon at saint-gobain.com> wrote: >> >> Hello, >> >> I have used Aerogear Android SDK (2.2.0) in a native Android App to >> communicate with an Aerogear Unified Push server and to use Google Cloud >> Messaging. >> >> >> >> After several tests we have identified an issue with token management : >> >> - register() successfully generates a token *A* against GCM and >> registration is OK on Aerogear server side >> >> - unregister() successfully invalidates the token *A* against >> GCM (?NotRegistered? is generated on GCM side when re-using the token) and >> unregistration is OK on Aerogear server side >> >> - when calling register() back, registration happens against >> Aerogear server but with *token A* which has been invalidated by GCM >> >> >> >> After analyzing the SDK source code, we realized that the token is saved >> in Android Shared Preferences but this token is never removed from shared >> preferences when calling unregister()! >> >> >> >> As a consequence, when a user unregisters/registers to a variant*, the >> ?old? token is not renewed* and notification sending fails since Google >> has invalidated this token! >> >> >> >> We quickfixed the AeroGearGCMPushRegistrar class by adding a following >> line in the unregister() method : >> >> >> >> AeroGearGCMPushRegistrar.this.setRegistrationId(context, ""); >> >> >> >> However, I am very surprised that this issue was never seen before. >> >> Am I using the registration/unregistration methods incorrectly? How can I >> force the token re-generation against GCM? >> >> >> >> Thanks, >> >> Matthias >> >> >> >> >> >> >> >> _______________________________________________ >> 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 >> >> > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- -- Passos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150730/eea17eb3/attachment-0001.html From dpassos at redhat.com Thu Jul 30 10:07:24 2015 From: dpassos at redhat.com (Daniel Passos) Date: Thu, 30 Jul 2015 11:07:24 -0300 Subject: [Aerogear-users] AeroGear Android Push 2.2.1 Message-ID: Hey Guys, Matthias found a bug[1] in our AeroGear Android Push library. It was fixed and staged[2] What is new in this version? - AGDROID-486 - Unregister caches device token We?re planning to release it tomorrow (Friday) in the end of the day. Fell free to test it and let us know if you find any issues. [1] http://aerogear-users.1116366.n5.nabble.com/Aerogear-users-Android-SDK-Token-not-renewed-when-unregistering-registering-td153.html [2] https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-5774/ ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150730/ff9d2d7e/attachment.html From kelvin at qantel.com Thu Jul 30 20:48:17 2015 From: kelvin at qantel.com (Kelvin Lunsford) Date: Fri, 31 Jul 2015 00:48:17 +0000 Subject: [Aerogear-users] UPS push to IOS removes the badge In-Reply-To: References: <73b7e07608e140fc9ec4ecc7856d2f15@stantz.qantel.com> Message-ID: <431642b6ea1649739d46f85d7c24fe29@stantz.qantel.com> Sorry Matt, Not ready to be a real contributor yet. Just a user. No git account. This looks like a 3 line change to me. Not big enough to learn everything required to do a PR. I might sign up later for a bigger change, but that's another topic. - Kelvin ------------------------------------------------------------------------------------ From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf Sent: Thursday, July 30, 2015 3:39 AM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] UPS push to IOS removes the badge Hi Kevin, you mind sending a PR (pull request) to fix this bug? Sorry for it, its a pretty annoying issue for sure! -Matthias On Thursday, July 30, 2015, Kelvin Lunsford wrote: If UPS is given a push command with no "badge" value the IOS badge icon is being removed when the notification is received.? Expected behavior is that the badge icon would be unchanged if no badge value is set. When USP receives a push command with no "badge" value it is sending APNS a "badge" value of -1. The Apple push payload spec says the badge icon is removed if the "badge" value is 0, and the icon is unchanged if there is no "badge" value.? The spec does not say what happens if the "badge" value is less than zero. Tested devices are removing the badge icon when -1 is set. Please change UPS so no "badge" value is sent to APNS when the UPS command has no "badge" value. For example you could change the sendPushMessage function of APNsPushNotificationSender.java to: ? PayloadBuilder builder = APNS.newPayload() ? ? // adding recognized key values ? ? .alertBody(message.getAlert()) ? ? //.badge(message.getBadge()) // do not set badge here ? ? .sound(message.getSound()) ? ? .alertTitle(apns.getTitle()) ? ? .alertAction(apns.getAction()) ? ? .urlArgs(apns.getUrlArgs()) ? ? .category(apns.getActionCategory()) ? ? .localizedTitleKey(apns.getLocalizedTitleKey()); ? if (message.getBadge() >= 0) ? ? builder.badge(message.getBadge()); // only set badge if needed - Kelvin _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Sent from Gmail Mobile From jesus90martin at gmail.com Fri Jul 31 07:53:10 2015 From: jesus90martin at gmail.com (=?UTF-8?B?SmVzw7pzIE1hcnTDrW4gR29uesOhbGV6?=) Date: Fri, 31 Jul 2015 13:53:10 +0200 Subject: [Aerogear-users] notifications overriding previus ones, Cordova Android Message-ID: Hi all, How can I show all the notifications received?, not only the last one. Something like whatsapp notifications, when there are 2 notifications, both are showed at notifications panel and not only the last one. Using Cordova Android and your Pushplugin thanks -- Jes?s Mart?n Gonzalez Tel: +34 654420529 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150731/e068b27d/attachment.html From dpassos at redhat.com Fri Jul 31 08:08:00 2015 From: dpassos at redhat.com (Daniel Passos) Date: Fri, 31 Jul 2015 09:08:00 -0300 Subject: [Aerogear-users] UPS push to IOS removes the badge In-Reply-To: <431642b6ea1649739d46f85d7c24fe29@stantz.qantel.com> References: <73b7e07608e140fc9ec4ecc7856d2f15@stantz.qantel.com> <431642b6ea1649739d46f85d7c24fe29@stantz.qantel.com> Message-ID: On Thu, Jul 30, 2015 at 9:48 PM, Kelvin Lunsford wrote: > Sorry Matt, > > Not ready to be a real contributor yet. Just a user. No git account. > I understand your point here but I cannot agree with you. Notify about a possible bug/whatever is a real contribution. Thank you for that. > > This looks like a 3 line change to me. Not big enough to learn everything > required to do a PR. > > I might sign up later for a bigger change, but that's another topic. > > - Kelvin > > > > ------------------------------------------------------------------------------------ > From: aerogear-users-bounces at lists.jboss.org [mailto: > aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf > Sent: Thursday, July 30, 2015 3:39 AM > To: aerogear-users at lists.jboss.org > Subject: Re: [Aerogear-users] UPS push to IOS removes the badge > > Hi Kevin, > > you mind sending a PR (pull request) to fix this bug? > Sorry for it, its a pretty annoying issue for sure! > > -Matthias > > On Thursday, July 30, 2015, Kelvin Lunsford wrote: > If UPS is given a push command with no "badge" value the IOS badge icon is > being removed when the notification is received. Expected behavior is that > the badge icon would be unchanged if no badge value is set. > > When USP receives a push command with no "badge" value it is sending APNS > a "badge" value of -1. > > The Apple push payload spec says the badge icon is removed if the "badge" > value is 0, and the icon is unchanged if there is no "badge" value. The > spec does not say what happens if the "badge" value is less than zero. > > Tested devices are removing the badge icon when -1 is set. > > Please change UPS so no "badge" value is sent to APNS when the UPS command > has no "badge" value. > > For example you could change the sendPushMessage function of > APNsPushNotificationSender.java to: > > PayloadBuilder builder = APNS.newPayload() > // adding recognized key values > .alertBody(message.getAlert()) > //.badge(message.getBadge()) // do not set badge here > .sound(message.getSound()) > .alertTitle(apns.getTitle()) > .alertAction(apns.getAction()) > .urlArgs(apns.getUrlArgs()) > .category(apns.getActionCategory()) > .localizedTitleKey(apns.getLocalizedTitleKey()); > > if (message.getBadge() >= 0) > builder.badge(message.getBadge()); // only set badge if needed > > - Kelvin > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > -- > Sent from Gmail Mobile > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- -- Passos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150731/25391f6f/attachment.html From dpassos at redhat.com Fri Jul 31 16:37:59 2015 From: dpassos at redhat.com (Daniel Passos) Date: Fri, 31 Jul 2015 17:37:59 -0300 Subject: [Aerogear-users] AeroGear Android Push 2.2.1 In-Reply-To: References: Message-ID: Hey Guys, I've clicked in release button, it will probably available on Maven Central next Monday. On Thu, Jul 30, 2015 at 11:07 AM, Daniel Passos wrote: > Hey Guys, > > Matthias found a bug[1] in our AeroGear Android Push library. It was fixed > and staged[2] > > What is new in this version? > > - AGDROID-486 - > Unregister caches device token > > We?re planning to release it tomorrow (Friday) in the end of the day. > > Fell free to test it and let us know if you find any issues. > > [1] > http://aerogear-users.1116366.n5.nabble.com/Aerogear-users-Android-SDK-Token-not-renewed-when-unregistering-registering-td153.html > [2] > https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-5774/ > ? > -- -- Passos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150731/6bba9ebb/attachment.html From jesus90martin at gmail.com Tue Jul 28 05:58:56 2015 From: jesus90martin at gmail.com (=?UTF-8?B?SmVzw7pzIE1hcnTDrW4gR29uesOhbGV6?=) Date: Tue, 28 Jul 2015 11:58:56 +0200 Subject: [Aerogear-users] push.unregister() not working Cordova 5.0.0 for Android Message-ID: Hi all, I'm starting to use pushplugin for Cordova android and i have followed all instrucctions and examples available at: https://aerogear.org/docs/specs/aerogear-cordova/Push.html and other pages. I can receive notifications but when I try to unregister the device an error message appear: "Seems this device is already unregistered" and it is wrong because I am still receiving notifications. I am using cordova 5.0.0 and deploying to android, i am using this for unregister: push.unregister(successHandler, errorHandler); function successHandler() { alert("notificaciones desactivadas"); } function errorHandler(message) { alert("error " + message); } Can you help me? Thanks -- Jes?s Mart?n Gonzalez Tel: +34 654420529 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150728/2896e181/attachment-0001.html From delkant at gmail.com Thu Jul 23 12:25:39 2015 From: delkant at gmail.com (Rodrigo Del Canto) Date: Thu, 23 Jul 2015 16:25:39 -0000 Subject: [Aerogear-users] cordova plugin on android platform not working Message-ID: Hello guys, I trying to test the Aerogear push plugin for cordova with android but is not working. this is my configuration: 1. mac os x 2. $ cordova -v 5.1.1 3. cordova plugin add https://github.com/aerogear/aerogear-cordova-push.git 4. I'm importing the android project to eclipse to build it there. and I get this dependencies errors: - The import android.support cannot be resolved - The import org.jboss.aerogear.android cannot be resolved [image: Inline image 1] Any ideas? Thanks a lot! Rodrigo. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150723/7f672ce5/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 289009 bytes Desc: not available Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150723/7f672ce5/attachment-0001.png From delkant at gmail.com Fri Jul 24 10:14:43 2015 From: delkant at gmail.com (Rodrigo Del Canto) Date: Fri, 24 Jul 2015 14:14:43 -0000 Subject: [Aerogear-users] Using Aerogear PushPlugin with Phonegap Build In-Reply-To: References: Message-ID: Hi Erik, Thanks for your reply. Actually I'm experiencing some issues, This is my configuration: 1. mac os x 2. $ cordova -v 5.1.1 3. cordova plugin add https://github.com/aerogear/aerogear-pushplugin-cordova.git 4. I import to eclipse the android project to build it there. and I got these dependencies errors: - The import android.support cannot be resolved - The import org.jboss.aerogear.android cannot be resolved [image: Inline image 1] On Fri, Jul 24, 2015 at 3:13 AM, Erik Jan de Wit wrote: > These instructions should work regardless of the platform: > > https://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/ > > Or do you have some specific error? > > On Thu, Jul 23, 2015 at 7:12 PM, Rodrigo Del Canto > 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 >> wrote: >> >>> the newer (2.x) version introduces some new functionality like metrics >>> and is compatible with the newer UPS >>> >>> On Fri, Jul 17, 2015 at 4:16 PM, Fabio Turizo >>> 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 at 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 >>>>> >>>>> https://github.com/aerogear/aerogear-cordova-push/releases/tag/1.0.4 >>>>> >>>>> On Fri, Jul 17, 2015 at 3:24 PM, Fabio Turizo >>>>> 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 >>>>>>>>> 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.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: >>>>>>>>>>> >>>>>>>>>>> *>>>>>>>>>> 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 >>>>> _______________________________________________ >>>>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150724/b893a3f1/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 289009 bytes Desc: not available Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150724/b893a3f1/attachment-0001.png