[Aerogear-users] Push registration with cordova plugin

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Aerogear-users] Push registration with cordova plugin

Alex Ballesté
Hi, I'm a bit disconcerted about a behaviour of push cordova plugin.

What I'm doing is to use the "register" method to register at the begining of the app. The second parameter of the app is a the success handler function, and it's executed when response is received. That's fine, but later there is a point of the app that user can change the registration to another group of categories, and I call it the same way, but success method is not executed.

In the server (aerogear) the category is changed and the 200 response is sent. Everything seems to work ok but success method not fired. I remember that this behaviour didn't happen in earlier versions. Now I'm with the 2.0.3. I'm building for android.

Anybody seeing this behaviour too?



--

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
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|

Re: [Aerogear-users] Push registration with cordova plugin

Alex Ballesté
To add some light, in ios it works.

El 27/11/15 a les 09:56, Alex Ballesté ha escrit:
Hi, I'm a bit disconcerted about a behaviour of push cordova plugin.

What I'm doing is to use the "register" method to register at the begining of the app. The second parameter of the app is a the success handler function, and it's executed when response is received. That's fine, but later there is a point of the app that user can change the registration to another group of categories, and I call it the same way, but success method is not executed.

In the server (aerogear) the category is changed and the 200 response is sent. Everything seems to work ok but success method not fired. I remember that this behaviour didn't happen in earlier versions. Now I'm with the 2.0.3. I'm building for android.

Anybody seeing this behaviour too?



--

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
[hidden email]
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
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|

Re: [Aerogear-users] Push registration with cordova plugin

Erik Jan de Wit
Hi Alex,

Yes this is a bug in the android part of the cordova push plugin. I've created an issue AGCORDOVA-125 [1] and a fix PR [2], could you try and see if it works? Instructions on how to try the fix are on the PR.


On Fri, Nov 27, 2015 at 11:55 AM, Alex Ballesté <[hidden email]> wrote:
To add some light, in ios it works.

El 27/11/15 a les 09:56, Alex Ballesté ha escrit:
Hi, I'm a bit disconcerted about a behaviour of push cordova plugin.

What I'm doing is to use the "register" method to register at the begining of the app. The second parameter of the app is a the success handler function, and it's executed when response is received. That's fine, but later there is a point of the app that user can change the registration to another group of categories, and I call it the same way, but success method is not executed.

In the server (aerogear) the category is changed and the 200 response is sent. Everything seems to work ok but success method not fired. I remember that this behaviour didn't happen in earlier versions. Now I'm with the 2.0.3. I'm building for android.

Anybody seeing this behaviour too?



--

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: <a href="tel:%2B34%20973%20702148" value="+34973702148" target="_blank">+34 973 702148

Fax: <a href="tel:%2B34%20973%20702130" value="+34973702130" target="_blank">+34 973 702130

=====================

Avís legal/Aviso legal/Avertiment legal/Legal notice



_______________________________________________
Aerogear-users mailing list
[hidden email]
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: <a href="tel:%2B34%20973%20702148" value="+34973702148" target="_blank">+34 973 702148

Fax: <a href="tel:%2B34%20973%20702130" value="+34973702130" target="_blank">+34 973 702130

=====================

Avís legal/Aviso legal/Avertiment legal/Legal notice


_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users




--
Cheers,
       Erik Jan

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|

Re: [Aerogear-users] Push registration with cordova plugin

Alex Ballesté
Sure, I'll test it tomorrow morning. It has been a very quick response. Great.

Thanks.

Alex.

El 30/11/15 a les 15:02, Erik Jan de Wit ha escrit:
Hi Alex,

Yes this is a bug in the android part of the cordova push plugin. I've created an issue AGCORDOVA-125 [1] and a fix PR [2], could you try and see if it works? Instructions on how to try the fix are on the PR.


On Fri, Nov 27, 2015 at 11:55 AM, Alex Ballesté <[hidden email]> wrote:
To add some light, in ios it works.

El 27/11/15 a les 09:56, Alex Ballesté ha escrit:
Hi, I'm a bit disconcerted about a behaviour of push cordova plugin.

What I'm doing is to use the "register" method to register at the begining of the app. The second parameter of the app is a the success handler function, and it's executed when response is received. That's fine, but later there is a point of the app that user can change the registration to another group of categories, and I call it the same way, but success method is not executed.

In the server (aerogear) the category is changed and the 200 response is sent. Everything seems to work ok but success method not fired. I remember that this behaviour didn't happen in earlier versions. Now I'm with the 2.0.3. I'm building for android.

Anybody seeing this behaviour too?



--

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: <a moz-do-not-send="true" href="tel:%2B34%20973%20702148" value="+34973702148" target="_blank">+34 973 702148

Fax: <a moz-do-not-send="true" href="tel:%2B34%20973%20702130" value="+34973702130" target="_blank">+34 973 702130

=====================

Avís legal/Aviso legal/Avertiment legal/Legal notice



_______________________________________________
Aerogear-users mailing list
[hidden email]
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: <a moz-do-not-send="true" href="tel:%2B34%20973%20702148" value="+34973702148" target="_blank">+34 973 702148

Fax: <a moz-do-not-send="true" href="tel:%2B34%20973%20702130" value="+34973702130" target="_blank">+34 973 702130

=====================

Avís legal/Aviso legal/Avertiment legal/Legal notice


_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users




--
Cheers,
       Erik Jan


_______________________________________________
Aerogear-users mailing list
[hidden email]
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
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|

Re: [Aerogear-users] Push registration with cordova plugin

Alex Ballesté
Yeah, it works. Thank you again.

Alex.

El 30/11/15 a les 15:11, Alex Ballesté ha escrit:
Sure, I'll test it tomorrow morning. It has been a very quick response. Great.

Thanks.

Alex.

El 30/11/15 a les 15:02, Erik Jan de Wit ha escrit:
Hi Alex,

Yes this is a bug in the android part of the cordova push plugin. I've created an issue AGCORDOVA-125 [1] and a fix PR [2], could you try and see if it works? Instructions on how to try the fix are on the PR.


On Fri, Nov 27, 2015 at 11:55 AM, Alex Ballesté <[hidden email]> wrote:
To add some light, in ios it works.

El 27/11/15 a les 09:56, Alex Ballesté ha escrit:
Hi, I'm a bit disconcerted about a behaviour of push cordova plugin.

What I'm doing is to use the "register" method to register at the begining of the app. The second parameter of the app is a the success handler function, and it's executed when response is received. That's fine, but later there is a point of the app that user can change the registration to another group of categories, and I call it the same way, but success method is not executed.

In the server (aerogear) the category is changed and the 200 response is sent. Everything seems to work ok but success method not fired. I remember that this behaviour didn't happen in earlier versions. Now I'm with the 2.0.3. I'm building for android.

Anybody seeing this behaviour too?



--

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: <a moz-do-not-send="true" href="tel:%2B34%20973%20702148" value="+34973702148" target="_blank">+34 973 702148

Fax: <a moz-do-not-send="true" href="tel:%2B34%20973%20702130" value="+34973702130" target="_blank">+34 973 702130

=====================

Avís legal/Aviso legal/Avertiment legal/Legal notice



_______________________________________________
Aerogear-users mailing list
[hidden email]
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: <a moz-do-not-send="true" href="tel:%2B34%20973%20702148" value="+34973702148" target="_blank">+34 973 702148

Fax: <a moz-do-not-send="true" href="tel:%2B34%20973%20702130" value="+34973702130" target="_blank">+34 973 702130

=====================

Avís legal/Aviso legal/Avertiment legal/Legal notice


_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users




--
Cheers,
       Erik Jan


_______________________________________________
Aerogear-users mailing list
[hidden email]
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
[hidden email]
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
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|

Re: [Aerogear-users] Push registration with cordova plugin

Erik Jan de Wit
Super, I merged the PR it will be part of version 2.0.4

On Tue, Dec 1, 2015 at 8:15 AM, Alex Ballesté <[hidden email]> wrote:
Yeah, it works. Thank you again.

Alex.

El 30/11/15 a les 15:11, Alex Ballesté ha escrit:
Sure, I'll test it tomorrow morning. It has been a very quick response. Great.

Thanks.

Alex.

El 30/11/15 a les 15:02, Erik Jan de Wit ha escrit:
Hi Alex,

Yes this is a bug in the android part of the cordova push plugin. I've created an issue AGCORDOVA-125 [1] and a fix PR [2], could you try and see if it works? Instructions on how to try the fix are on the PR.


On Fri, Nov 27, 2015 at 11:55 AM, Alex Ballesté <[hidden email]> wrote:
To add some light, in ios it works.

El 27/11/15 a les 09:56, Alex Ballesté ha escrit:
Hi, I'm a bit disconcerted about a behaviour of push cordova plugin.

What I'm doing is to use the "register" method to register at the begining of the app. The second parameter of the app is a the success handler function, and it's executed when response is received. That's fine, but later there is a point of the app that user can change the registration to another group of categories, and I call it the same way, but success method is not executed.

In the server (aerogear) the category is changed and the 200 response is sent. Everything seems to work ok but success method not fired. I remember that this behaviour didn't happen in earlier versions. Now I'm with the 2.0.3. I'm building for android.

Anybody seeing this behaviour too?



--

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: <a href="tel:%2B34%20973%20702148" value="+34973702148" target="_blank">+34 973 702148

Fax: <a href="tel:%2B34%20973%20702130" value="+34973702130" target="_blank">+34 973 702130

=====================

Avís legal/Aviso legal/Avertiment legal/Legal notice



_______________________________________________
Aerogear-users mailing list
[hidden email]
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: <a href="tel:%2B34%20973%20702148" value="+34973702148" target="_blank">+34 973 702148

Fax: <a href="tel:%2B34%20973%20702130" value="+34973702130" target="_blank">+34 973 702130

=====================

Avís legal/Aviso legal/Avertiment legal/Legal notice


_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users




--
Cheers,
       Erik Jan


_______________________________________________
Aerogear-users mailing list
[hidden email]
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: <a href="tel:%2B34%20973%20702148" value="+34973702148" target="_blank">+34 973 702148

Fax: <a href="tel:%2B34%20973%20702130" value="+34973702130" target="_blank">+34 973 702130

=====================

Avís legal/Aviso legal/Avertiment legal/Legal notice



_______________________________________________
Aerogear-users mailing list
[hidden email]
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: <a href="tel:%2B34%20973%20702148" value="+34973702148" target="_blank">+34 973 702148

Fax: <a href="tel:%2B34%20973%20702130" value="+34973702130" target="_blank">+34 973 702130

=====================

Avís legal/Aviso legal/Avertiment legal/Legal notice


_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users




--
Cheers,
       Erik Jan

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users