From ashishkumarpandita at gmail.com Sat Apr 1 11:41:24 2017 From: ashishkumarpandita at gmail.com (Ashish Kumar Pandita) Date: Sat, 1 Apr 2017 21:11:24 +0530 Subject: [Aerogear-users] Revoke (logout) token - Android In-Reply-To: References: Message-ID: In iOS it does not show AuthzModule.deleteAccount() method in swift. I am using Keycloak module to login but logout I am not sure how to do I have the same issue can you please guide me? On Mon, Mar 27, 2017 at 6:28 PM, Summers Pittman wrote: > We don't have an explicit logout method, but you should be able to delete > the session using AuthzModule.deleteAccount(). > > On Mon, Mar 27, 2017 at 5:11 AM, Mitja Jesenicnik Kotnik < > mitja.kotnik at cloud.si> wrote: > >> Hello, >> >> I'm using AeroGear to connect to a Keycloak server and retrieve data. >> When I tried it for the first time it opened a WebView and promted me to >> enter my password and username. Then when it was succesful I opened >> MainActivity. >> >> Now my question is how can I implement the logout functionality, since >> the app dosen't ask me again for my credentials (username, password) but >> just sends a succes and opens MainActivity. >> >> Thank you for your help in advance. >> >> Best regards, >> Mitja >> >> _______________________________________________ >> 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 > > -- Ashish Kumar Pandita -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170401/341d1f43/attachment.html From supittma at redhat.com Sun Apr 2 23:05:17 2017 From: supittma at redhat.com (Summers Pittman) Date: Sun, 2 Apr 2017 23:05:17 -0400 Subject: [Aerogear-users] Revoke (logout) token - Android In-Reply-To: References: Message-ID: On Sat, Apr 1, 2017 at 11:41 AM, Ashish Kumar Pandita < ashishkumarpandita at gmail.com> wrote: > In iOS it does not show AuthzModule.deleteAccount() method in swift. I am > using Keycloak module to login but logout I am not sure how to do I have > the same issue can you please guide me? > OAuth2Session.clearTokens seems to be your method in iOS. However you will still have the same problems with your webview caching the cookie/login session. > > On Mon, Mar 27, 2017 at 6:28 PM, Summers Pittman > wrote: > >> We don't have an explicit logout method, but you should be able to delete >> the session using AuthzModule.deleteAccount(). >> >> On Mon, Mar 27, 2017 at 5:11 AM, Mitja Jesenicnik Kotnik < >> mitja.kotnik at cloud.si> wrote: >> >>> Hello, >>> >>> I'm using AeroGear to connect to a Keycloak server and retrieve data. >>> When I tried it for the first time it opened a WebView and promted me to >>> enter my password and username. Then when it was succesful I opened >>> MainActivity. >>> >>> Now my question is how can I implement the logout functionality, since >>> the app dosen't ask me again for my credentials (username, password) but >>> just sends a succes and opens MainActivity. >>> >>> Thank you for your help in advance. >>> >>> Best regards, >>> Mitja >>> >>> _______________________________________________ >>> 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 >> >> > > > -- > Ashish Kumar Pandita > > _______________________________________________ > 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/20170402/31756a00/attachment-0001.html From kurrent93 at gmail.com Tue Apr 11 08:00:02 2017 From: kurrent93 at gmail.com (Anton) Date: Tue, 11 Apr 2017 14:00:02 +0200 Subject: [Aerogear-users] Instructions for deploying on OpenShift origin Message-ID: Hello Is there any existing documentation, or ideally openshift templates, for deploying the push server? Also, does *need *mysql, or can it using any hibernate supported database? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170411/b1998eea/attachment.html From lgriffin at redhat.com Tue Apr 11 09:29:53 2017 From: lgriffin at redhat.com (Leigh Griffin) Date: Tue, 11 Apr 2017 14:29:53 +0100 Subject: [Aerogear-users] Instructions for deploying on OpenShift origin In-Reply-To: References: Message-ID: Hi Anton, There is an active thread on the Aerogear-dev list which you can follow here: http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-UPS-Openshift-Template-td12940.html There should be an updated Openshift Template landing soon, 2 members are at a point where a PR is coming. Leigh On Tue, Apr 11, 2017 at 1:00 PM, Anton wrote: > Hello > > Is there any existing documentation, or ideally openshift templates, for > deploying the push server? > > Also, does *need *mysql, or can it using any hibernate supported database? > > Thanks > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- LEIGH GRIFFIN ENGINEERING MANAGER, MOBILE Red Hat Ireland Communications House, Cork Road Waterford City, Ireland X91NY33 lgriffin at redhat.com M: +353877545162 IM: lgriffin TRIED. TESTED. TRUSTED. @redhatway @redhatinc @redhatsnaps -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170411/6d21c019/attachment.html From supittma at redhat.com Tue Apr 11 10:42:37 2017 From: supittma at redhat.com (Summers Pittman) Date: Tue, 11 Apr 2017 10:42:37 -0400 Subject: [Aerogear-users] Instructions for deploying on OpenShift origin In-Reply-To: References: Message-ID: On Tue, Apr 11, 2017 at 8:00 AM, Anton wrote: > Hello > > Is there any existing documentation, or ideally openshift templates, for > deploying the push server? > > I've written a blog post for deploying UPS to OpenShift here : https://blog.sagaoftherealms.net/?p=644 I am also testing a UPS template for OpenShift. You can find it here : github.com/secondsun/ups-docker-openshift-template ; feel free to send feedback. > Also, does *need *mysql, or can it using any hibernate supported database? > UPS supports mysql, postgres, and h2 and ships with the appropriate configuration for those. You can probably get it to work with other HIbernate databases as well, but don't have any experience with those. > > Thanks > > _______________________________________________ > 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/20170411/dedb57f4/attachment.html From kurrent93 at gmail.com Tue Apr 11 14:28:47 2017 From: kurrent93 at gmail.com (Anton) Date: Tue, 11 Apr 2017 20:28:47 +0200 Subject: [Aerogear-users] Instructions for deploying on OpenShift origin In-Reply-To: References: Message-ID: Thanks Summers! This is greatly appreciated. On 11 April 2017 at 16:42, Summers Pittman wrote: > > > On Tue, Apr 11, 2017 at 8:00 AM, Anton wrote: > >> Hello >> >> Is there any existing documentation, or ideally openshift templates, for >> deploying the push server? >> >> > I've written a blog post for deploying UPS to OpenShift here : > https://blog.sagaoftherealms.net/?p=644 > I am also testing a UPS template for OpenShift. You can find it here : > github.com/secondsun/ups-docker-openshift-template ; feel free to send > feedback. > > >> Also, does *need *mysql, or can it using any hibernate supported >> database? >> > > UPS supports mysql, postgres, and h2 and ships with the appropriate > configuration for those. You can probably get it to work with other > HIbernate databases as well, but don't have any experience with those. > > >> >> Thanks >> >> _______________________________________________ >> 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/20170411/651a9002/attachment.html From kurrent93 at gmail.com Tue Apr 11 15:26:40 2017 From: kurrent93 at gmail.com (Anton) Date: Tue, 11 Apr 2017 21:26:40 +0200 Subject: [Aerogear-users] Instructions for deploying on OpenShift origin In-Reply-To: References: Message-ID: Hi Summers I'm having problems with unifiedpush-server. The logs are viewable at https://pastebin.com/pFKSXsQ5 Of particular interest is Unable to get managed connection for java:jboss/datasources/KeycloakDS Now, I already have keycloak running in my cluster, so I would have expected that it could already connect to Keycloak, but the error suggests that unifiedpush-server is not trying to connect to Keycloak, but to the Keycloak database! If this is correct, this sounds like a very poor architecture. Keycloak has a very good API. Why would unifiedpush-server connect to the keycloak database, instead of using the keycloak API thanks On 11 April 2017 at 20:28, Anton wrote: > Thanks Summers! > > This is greatly appreciated. > > On 11 April 2017 at 16:42, Summers Pittman wrote: > >> >> >> On Tue, Apr 11, 2017 at 8:00 AM, Anton wrote: >> >>> Hello >>> >>> Is there any existing documentation, or ideally openshift templates, for >>> deploying the push server? >>> >>> >> I've written a blog post for deploying UPS to OpenShift here : >> https://blog.sagaoftherealms.net/?p=644 >> I am also testing a UPS template for OpenShift. You can find it here : >> github.com/secondsun/ups-docker-openshift-template ; feel free to send >> feedback. >> >> >>> Also, does *need *mysql, or can it using any hibernate supported >>> database? >>> >> >> UPS supports mysql, postgres, and h2 and ships with the appropriate >> configuration for those. You can probably get it to work with other >> HIbernate databases as well, but don't have any experience with those. >> >> >>> >>> Thanks >>> >>> _______________________________________________ >>> 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/20170411/aba74606/attachment-0001.html From kurrent93 at gmail.com Wed Apr 12 03:54:11 2017 From: kurrent93 at gmail.com (Anton) Date: Wed, 12 Apr 2017 09:54:11 +0200 Subject: [Aerogear-users] Instructions for deploying on OpenShift origin In-Reply-To: References: Message-ID: I found https://github.com/aerogear/aerogear-unifiedpush-server/pull/751 that is about seperating KC and UPS. Does anyone know what more needs to be done on this? On 11 April 2017 at 21:26, Anton wrote: > Hi Summers > > I'm having problems with unifiedpush-server. > > The logs are viewable at https://pastebin.com/pFKSXsQ5 > > Of particular interest is Unable to get managed connection for > java:jboss/datasources/KeycloakDS > > Now, I already have keycloak running in my cluster, so I would have > expected that it could already connect to Keycloak, but the error suggests > that unifiedpush-server is not trying to connect to Keycloak, but to the > Keycloak database! If this is correct, this sounds like a very poor > architecture. Keycloak has a very good API. > Why would unifiedpush-server connect to the keycloak database, instead of > using the keycloak API > > thanks > > On 11 April 2017 at 20:28, Anton wrote: > >> Thanks Summers! >> >> This is greatly appreciated. >> >> On 11 April 2017 at 16:42, Summers Pittman wrote: >> >>> >>> >>> On Tue, Apr 11, 2017 at 8:00 AM, Anton wrote: >>> >>>> Hello >>>> >>>> Is there any existing documentation, or ideally openshift templates, >>>> for deploying the push server? >>>> >>>> >>> I've written a blog post for deploying UPS to OpenShift here : >>> https://blog.sagaoftherealms.net/?p=644 >>> I am also testing a UPS template for OpenShift. You can find it here : >>> github.com/secondsun/ups-docker-openshift-template ; feel free to send >>> feedback. >>> >>> >>>> Also, does *need *mysql, or can it using any hibernate supported >>>> database? >>>> >>> >>> UPS supports mysql, postgres, and h2 and ships with the appropriate >>> configuration for those. You can probably get it to work with other >>> HIbernate databases as well, but don't have any experience with those. >>> >>> >>>> >>>> Thanks >>>> >>>> _______________________________________________ >>>> 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/20170412/a150d020/attachment.html From supittma at redhat.com Wed Apr 12 07:19:18 2017 From: supittma at redhat.com (Summers Pittman) Date: Wed, 12 Apr 2017 07:19:18 -0400 Subject: [Aerogear-users] Instructions for deploying on OpenShift origin In-Reply-To: References: Message-ID: On Tue, Apr 11, 2017 at 3:26 PM, Anton wrote: > Hi Summers > > I'm having problems with unifiedpush-server. > > The logs are viewable at https://pastebin.co't work for because I didn't > have the image already pulled. I think it's pulling it from > openshift/mysql:5.7, becam/pFKSXsQ5 > > Of particular interest is Unable to get managed connection for > java:jboss/datasources/KeycloakDS > > So something that might be going on in your logs is that Wildfly deploys UPS before the databases wake up and there are errors. In theory the pod should be destroyed and recreated. Additionally, you may not have the service "keycloak" pointing to a mysql database, it may be your keycloak service that you mention below. > Now, I already have keycloak running in my cluster, so I would have > expected that it could already connect to Keycloak, but the error suggests > that unifiedpush-server is not trying to connect to Keycloak, but to the > Keycloak database! If this is correct, this sounds like a very poor > architecture. Keycloak has a very good API. > Why would unifiedpush-server connect to the keycloak database, instead of > using the keycloak API > > So way back in the dark ages of 2013/2014 Keycloak had this idea that it could be embedded in applications. During this time UPS was written and we embedded Keycloak. So the UPS deployment includes its own version of Keycloak and this needs its own datasource for its own keycloak. Of course this is not ideal and we are planning on separating the two. > thanks > > On 11 April 2017 at 20:28, Anton wrote: > >> Thanks Summers! >> >> This is greatly appreciated. >> >> On 11 April 2017 at 16:42, Summers Pittman wrote: >> >>> >>> >>> On Tue, Apr 11, 2017 at 8:00 AM, Anton wrote: >>> >>>> Hello >>>> >>>> Is there any existing documentation, or ideally openshift templates, >>>> for deploying the push server? >>>> >>>> >>> I've written a blog post for deploying UPS to OpenShift here : >>> https://blog.sagaoftherealms.net/?p=644 >>> I am also testing a UPS template for OpenShift. You can find it here : >>> github.com/secondsun/ups-docker-openshift-template ; feel free to send >>> feedback. >>> >>> >>>> Also, does *need *mysql, or can it using any hibernate supported >>>> database? >>>> >>> >>> UPS supports mysql, postgres, and h2 and ships with the appropriate >>> configuration for those. You can probably get it to work with other >>> HIbernate databases as well, but don't have any experience with those. >>> >>> >>>> >>>> Thanks >>>> >>>> _______________________________________________ >>>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170412/ebaad385/attachment.html From kurrent93 at gmail.com Wed Apr 12 10:48:11 2017 From: kurrent93 at gmail.com (Anton) Date: Wed, 12 Apr 2017 16:48:11 +0200 Subject: [Aerogear-users] Instructions for deploying on OpenShift origin In-Reply-To: References: Message-ID: Thanks On 12 April 2017 at 13:19, Summers Pittman wrote: > Of course this is not ideal and we are planning on separating the two. > Yes I see there is a PR for this, and it has been waiting for a few months. https://github.com/aerogear/aerogear-unifiedpush-server/pull/751 - I see its called WIP - does that mean there is more to be done on this? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170412/50778eb5/attachment.html From supittma at redhat.com Thu Apr 13 08:45:56 2017 From: supittma at redhat.com (Summers Pittman) Date: Thu, 13 Apr 2017 08:45:56 -0400 Subject: [Aerogear-users] Instructions for deploying on OpenShift origin In-Reply-To: References: Message-ID: On Wed, Apr 12, 2017 at 10:48 AM, Anton wrote: > Thanks > On 12 April 2017 at 13:19, Summers Pittman wrote: > >> Of course this is not ideal and we are planning on separating the two. >> > > Yes I see there is a PR for this, and it has been waiting for a few > months. https://github.com/aerogear/aerogear-unifiedpush-server/pull/751 > - I see its called WIP - does that mean there is more to be done on this? > I think so, we will need to get matzew to respond. > > _______________________________________________ > 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/20170413/6f0a8e8a/attachment-0001.html From fedecentrico at gmail.com Tue Apr 18 10:18:37 2017 From: fedecentrico at gmail.com (Federico Cerminara) Date: Tue, 18 Apr 2017 16:18:37 +0200 Subject: [Aerogear-users] An app crash scenario after clicking on push notification Message-ID: Hi, my name is Federico Cerminara, 35 years old, engineer and web developer in Rome. I?m a beginner in cross platform app development and I?ve started using aerogear cordova push plugin to enable reception of push notification. I?ve developed my first app. I?m able to receive correctly push notification, both sending them directly by aerogear admin panel after choosing a variant and and sending them from the application backend following a custom logic. If I have my app closed or already open, clicking on push notification seems to behave correctly, bringing user to application first page. Instead, if I try to close all my applications after receiving one or more push notification (image notification frequency is quite low) and then I try to click on my waiting push, application crashes showing a message that sound quite like this ?The program has been interrupted? Can you tell me a way to solve this problem? Thanks anyway, Federico. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170418/42e4ec61/attachment.html From supittma at redhat.com Tue Apr 18 10:33:54 2017 From: supittma at redhat.com (Summers Pittman) Date: Tue, 18 Apr 2017 10:33:54 -0400 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: Frederico, Hi, sorry you are having trouble with UPS. If you could help us out by answering a couple of questions that would be great. 1) Which OS is your applicatoin having trouble on and are you using Cordova or native libraries? 2) Is your code publicly available somewhere for us to look at? 3) Are you using the example app or is this your own implementation? I know from experience that with Android one of the common problems is that if the application has been killed by the OS then the Push libraries have to be reinitialized before you can send metrics to the server. If you are initializing your push libraries in an Activity class instead of the Application class this may be something to double check. Of course if this is iOS or Cordova then everything I just said is nonsense :) Summers On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara wrote: > Hi, > my name is Federico Cerminara, 35 years old, engineer and web developer in > Rome. > I?m a beginner in cross platform app development and I?ve started using > aerogear cordova push plugin to enable reception of push notification. > > I?ve developed my first app. I?m able to receive correctly push > notification, both sending them directly by aerogear admin panel after > choosing a variant and and sending them from the application backend > following a custom logic. If I have my app closed or already open, clicking > on push notification seems to behave correctly, bringing user to > application first page. Instead, if I try to close all my applications > after receiving one or more push notification (image notification frequency > is quite low) and then I try to click on my waiting push, application > crashes showing a message that sound quite like this ?The program > has been interrupted? > > Can you tell me a way to solve this problem? > Thanks anyway, Federico. > > _______________________________________________ > 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/20170418/2aee0f37/attachment.html From fedecentrico at gmail.com Tue Apr 18 10:55:54 2017 From: fedecentrico at gmail.com (Federico Cerminara) Date: Tue, 18 Apr 2017 16:55:54 +0200 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: Hi Summers, thanks for your immediate reply. The OS on the device i am testing now is Android 6.0.1, but I don't know if it's an useful information cause I'm using Ionic 1 and Angular 1 to develop a Cross Platform App. The code is not publicly available but I can share some code pieces if you suggest me which pieces of code could help us for this analysis. It's not ax example app, I just took inspiration from the snippet of code included in Android aerogear variant and used them to complete my app.js code. How could you help me? Thanks anyway, Federico. 2017-04-18 16:33 GMT+02:00 Summers Pittman : > Frederico, > > Hi, sorry you are having trouble with UPS. If you could help us out by > answering a couple of questions that would be great. > > 1) Which OS is your applicatoin having trouble on and are you using > Cordova or native libraries? > > 2) Is your code publicly available somewhere for us to look at? > > 3) Are you using the example app or is this your own implementation? > > I know from experience that with Android one of the common problems is > that if the application has been killed by the OS then the Push libraries > have to be reinitialized before you can send metrics to the server. If you > are initializing your push libraries in an Activity class instead of the > Application class this may be something to double check. Of course if this > is iOS or Cordova then everything I just said is nonsense :) > > Summers > > On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara < > fedecentrico at gmail.com> wrote: > >> Hi, >> my name is Federico Cerminara, 35 years old, engineer and web developer >> in Rome. >> I?m a beginner in cross platform app development and I?ve started using >> aerogear cordova push plugin to enable reception of push notification. >> >> I?ve developed my first app. I?m able to receive correctly push >> notification, both sending them directly by aerogear admin panel after >> choosing a variant and and sending them from the application backend >> following a custom logic. If I have my app closed or already open, clicking >> on push notification seems to behave correctly, bringing user to >> application first page. Instead, if I try to close all my applications >> after receiving one or more push notification (image notification frequency >> is quite low) and then I try to click on my waiting push, application >> crashes showing a message that sound quite like this ?The program >> has been interrupted? >> >> Can you tell me a way to solve this problem? >> Thanks anyway, Federico. >> >> _______________________________________________ >> 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 > > -- Puoi trovarmi qui, se vuoi: facebook , flickr , linkedin , twitter , anobii Link consigliati: Piccoli Maestri , Il clima di Cipro -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170418/5408863f/attachment.html From supittma at redhat.com Tue Apr 18 11:23:29 2017 From: supittma at redhat.com (Summers Pittman) Date: Tue, 18 Apr 2017 11:23:29 -0400 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: On Tue, Apr 18, 2017 at 10:55 AM, Federico Cerminara wrote: > Hi Summers, > thanks for your immediate reply. The OS on the device i am testing now is > Android 6.0.1, but I don't know if it's an useful information cause I'm > using Ionic 1 and Angular 1 to develop a Cross Platform App. > > The code is not publicly available but I can share some code pieces if you > suggest me which pieces of code could help us for this analysis. > > It's not ax example app, I just took inspiration from the snippet of code > included in Android aerogear variant and used them to complete my app.js > code. > > How could you help me? > Would you be able to include your stack trace from logcat when the application crashes? I'm not as familiar with Cordova as I should be, but I should be able to make heads or tails of it. > Thanks anyway, Federico. > > > 2017-04-18 16:33 GMT+02:00 Summers Pittman : > >> Frederico, >> >> Hi, sorry you are having trouble with UPS. If you could help us out by >> answering a couple of questions that would be great. >> >> 1) Which OS is your applicatoin having trouble on and are you using >> Cordova or native libraries? >> >> 2) Is your code publicly available somewhere for us to look at? >> >> 3) Are you using the example app or is this your own implementation? >> >> I know from experience that with Android one of the common problems is >> that if the application has been killed by the OS then the Push libraries >> have to be reinitialized before you can send metrics to the server. If you >> are initializing your push libraries in an Activity class instead of the >> Application class this may be something to double check. Of course if this >> is iOS or Cordova then everything I just said is nonsense :) >> >> Summers >> >> On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara < >> fedecentrico at gmail.com> wrote: >> >>> Hi, >>> my name is Federico Cerminara, 35 years old, engineer and web developer >>> in Rome. >>> I?m a beginner in cross platform app development and I?ve started using >>> aerogear cordova push plugin to enable reception of push notification. >>> >>> I?ve developed my first app. I?m able to receive correctly push >>> notification, both sending them directly by aerogear admin panel after >>> choosing a variant and and sending them from the application backend >>> following a custom logic. If I have my app closed or already open, clicking >>> on push notification seems to behave correctly, bringing user to >>> application first page. Instead, if I try to close all my applications >>> after receiving one or more push notification (image notification frequency >>> is quite low) and then I try to click on my waiting push, application >>> crashes showing a message that sound quite like this ?The program >>> has been interrupted? >>> >>> Can you tell me a way to solve this problem? >>> Thanks anyway, Federico. >>> >>> _______________________________________________ >>> 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 >> >> > > > -- > Puoi trovarmi qui, se vuoi: > facebook , flickr > , linkedin > , twitter > , anobii > > Link consigliati: Piccoli Maestri , Il > clima di Cipro > > _______________________________________________ > 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/20170418/c49c2b65/attachment-0001.html From fedecentrico at gmail.com Wed Apr 19 04:11:37 2017 From: fedecentrico at gmail.com (Federico Cerminara) Date: Wed, 19 Apr 2017 10:11:37 +0200 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: Still not able to introduce a tool to produce a stacktrace. I know it would be helpful (if you have suggestions about which tool/plugin/approach to use...) but now i am still not able to do it. I?m a beginner in cross platform app development, as i said before :( 2017-04-18 17:23 GMT+02:00 Summers Pittman : > > > On Tue, Apr 18, 2017 at 10:55 AM, Federico Cerminara < > fedecentrico at gmail.com> wrote: > >> Hi Summers, >> thanks for your immediate reply. The OS on the device i am testing now is >> Android 6.0.1, but I don't know if it's an useful information cause I'm >> using Ionic 1 and Angular 1 to develop a Cross Platform App. >> >> The code is not publicly available but I can share some code pieces if >> you suggest me which pieces of code could help us for this analysis. >> >> It's not ax example app, I just took inspiration from the snippet of code >> included in Android aerogear variant and used them to complete my app.js >> code. >> >> How could you help me? >> > > Would you be able to include your stack trace from logcat when the > application crashes? > > I'm not as familiar with Cordova as I should be, but I should be able to > make heads or tails of it. > > >> Thanks anyway, Federico. >> >> >> 2017-04-18 16:33 GMT+02:00 Summers Pittman : >> >>> Frederico, >>> >>> Hi, sorry you are having trouble with UPS. If you could help us out by >>> answering a couple of questions that would be great. >>> >>> 1) Which OS is your applicatoin having trouble on and are you using >>> Cordova or native libraries? >>> >>> 2) Is your code publicly available somewhere for us to look at? >>> >>> 3) Are you using the example app or is this your own implementation? >>> >>> I know from experience that with Android one of the common problems is >>> that if the application has been killed by the OS then the Push libraries >>> have to be reinitialized before you can send metrics to the server. If you >>> are initializing your push libraries in an Activity class instead of the >>> Application class this may be something to double check. Of course if this >>> is iOS or Cordova then everything I just said is nonsense :) >>> >>> Summers >>> >>> On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara < >>> fedecentrico at gmail.com> wrote: >>> >>>> Hi, >>>> my name is Federico Cerminara, 35 years old, engineer and web developer >>>> in Rome. >>>> I?m a beginner in cross platform app development and I?ve started using >>>> aerogear cordova push plugin to enable reception of push notification. >>>> >>>> I?ve developed my first app. I?m able to receive correctly push >>>> notification, both sending them directly by aerogear admin panel after >>>> choosing a variant and and sending them from the application backend >>>> following a custom logic. If I have my app closed or already open, clicking >>>> on push notification seems to behave correctly, bringing user to >>>> application first page. Instead, if I try to close all my applications >>>> after receiving one or more push notification (image notification frequency >>>> is quite low) and then I try to click on my waiting push, application >>>> crashes showing a message that sound quite like this ?The program >>>> has been interrupted? >>>> >>>> Can you tell me a way to solve this problem? >>>> Thanks anyway, Federico. >>>> >>>> _______________________________________________ >>>> 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 >>> >>> >> >> >> -- >> Puoi trovarmi qui, se vuoi: >> facebook , flickr >> , linkedin >> , twitter >> , anobii >> >> Link consigliati: Piccoli Maestri , Il >> clima di Cipro >> >> _______________________________________________ >> 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 > > -- Puoi trovarmi qui, se vuoi: facebook , flickr , linkedin , twitter , anobii Link consigliati: Piccoli Maestri , Il clima di Cipro -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170419/7d9d8304/attachment.html From supittma at redhat.com Wed Apr 19 07:37:49 2017 From: supittma at redhat.com (Summers Pittman) Date: Wed, 19 Apr 2017 07:37:49 -0400 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: The easiest tool to use is logcat with the Android emulator. Logcat is part of the Android SDK which you installed while you were setting up your development environment (it may have been installed by another tool but it is there). All you need to do is, from the command line, run logcat. Then run your application and wait for it to crash, and you will find the stack trace (and a bunch of other stuff), in the log. It is possible to filter the logcat output based on the package name of the application generating logs, but one thing at a time. Summers On Wed, Apr 19, 2017 at 4:11 AM, Federico Cerminara wrote: > Still not able to introduce a tool to produce a stacktrace. I know it > would be helpful (if you have suggestions about which tool/plugin/approach > to use...) but now i am still not able to do it. I?m a beginner in cross > platform app development, as i said before :( > > 2017-04-18 17:23 GMT+02:00 Summers Pittman : > >> >> >> On Tue, Apr 18, 2017 at 10:55 AM, Federico Cerminara < >> fedecentrico at gmail.com> wrote: >> >>> Hi Summers, >>> thanks for your immediate reply. The OS on the device i am testing now >>> is Android 6.0.1, but I don't know if it's an useful information cause I'm >>> using Ionic 1 and Angular 1 to develop a Cross Platform App. >>> >>> The code is not publicly available but I can share some code pieces if >>> you suggest me which pieces of code could help us for this analysis. >>> >>> It's not ax example app, I just took inspiration from the snippet of >>> code included in Android aerogear variant and used them to complete my >>> app.js code. >>> >>> How could you help me? >>> >> >> Would you be able to include your stack trace from logcat when the >> application crashes? >> >> I'm not as familiar with Cordova as I should be, but I should be able to >> make heads or tails of it. >> >> >>> Thanks anyway, Federico. >>> >>> >>> 2017-04-18 16:33 GMT+02:00 Summers Pittman : >>> >>>> Frederico, >>>> >>>> Hi, sorry you are having trouble with UPS. If you could help us out by >>>> answering a couple of questions that would be great. >>>> >>>> 1) Which OS is your applicatoin having trouble on and are you using >>>> Cordova or native libraries? >>>> >>>> 2) Is your code publicly available somewhere for us to look at? >>>> >>>> 3) Are you using the example app or is this your own implementation? >>>> >>>> I know from experience that with Android one of the common problems is >>>> that if the application has been killed by the OS then the Push libraries >>>> have to be reinitialized before you can send metrics to the server. If you >>>> are initializing your push libraries in an Activity class instead of the >>>> Application class this may be something to double check. Of course if this >>>> is iOS or Cordova then everything I just said is nonsense :) >>>> >>>> Summers >>>> >>>> On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara < >>>> fedecentrico at gmail.com> wrote: >>>> >>>>> Hi, >>>>> my name is Federico Cerminara, 35 years old, engineer and web >>>>> developer in Rome. >>>>> I?m a beginner in cross platform app development and I?ve started >>>>> using aerogear cordova push plugin to enable reception of push >>>>> notification. >>>>> >>>>> I?ve developed my first app. I?m able to receive correctly push >>>>> notification, both sending them directly by aerogear admin panel after >>>>> choosing a variant and and sending them from the application backend >>>>> following a custom logic. If I have my app closed or already open, clicking >>>>> on push notification seems to behave correctly, bringing user to >>>>> application first page. Instead, if I try to close all my applications >>>>> after receiving one or more push notification (image notification frequency >>>>> is quite low) and then I try to click on my waiting push, application >>>>> crashes showing a message that sound quite like this ?The program >>>>> has been interrupted? >>>>> >>>>> Can you tell me a way to solve this problem? >>>>> Thanks anyway, Federico. >>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>>> >>> >>> >>> -- >>> Puoi trovarmi qui, se vuoi: >>> facebook , flickr >>> , linkedin >>> , twitter >>> , anobii >>> >>> Link consigliati: Piccoli Maestri , Il >>> clima di Cipro >>> >>> _______________________________________________ >>> 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 >> >> > > > -- > Puoi trovarmi qui, se vuoi: > facebook , flickr > , linkedin > , twitter > , anobii > > Link consigliati: Piccoli Maestri , Il > clima di Cipro > > _______________________________________________ > 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/20170419/ad0c30c2/attachment-0001.html From fedecentrico at gmail.com Thu Apr 20 06:08:04 2017 From: fedecentrico at gmail.com (Federico Cerminara) Date: Thu, 20 Apr 2017 12:08:04 +0200 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: Hi Summers, first of all, i'd like to thank you for your precious suggestion. I managed to launch my app using Android Emulator and together with the logcat tool. Thanks to this new approach, i was able to take some lines from the logcat stacktrace and now i can share them in the following. *04-20 11:35:44.861 31658 31658 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.jboss.aerogear.android.cookbook.aerodoc/org.jboss.aerogear.cordova.push.PushHandlerActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Collection org.jboss.aerogear.android.store.Store.readAll()' on a null object reference... ... ... 04-20 11:35:44.861 31658 31658 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Collection org.jboss.aerogear.android.store.Store.readAll()' on a null object reference04-20 11:35:44.861 31658 31658 E AndroidRuntime: at org.jboss.aerogear.cordova.push.PushHandlerActivity.processPushBundle(PushHandlerActivity.java:60)04-20 11:35:44.861 31658 31658 E AndroidRuntime: at org.jboss.aerogear.cordova.push.PushHandlerActivity.onCreate(PushHandlerActivity.java:45)04-20 11:35:44.861 31658 31658 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6876)04-20 11:35:44.861 31658 31658 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)04-20 11:35:44.861 31658 31658 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)04-20 11:35:44.861 31658 31658 E AndroidRuntime: ... 9 more* As i wrote in the first mail, this is the app crash scenario. If I have my app closed or already open, clicking on push notification seems to behave correctly, bringing user to application first page. Instead, if I try to close all my applications after receiving one or more push notification (image notification frequency is quite low) and then I try to click on my waiting push, application crashes showing a message that sound quite like this ?The program has been interrupted? Reading the log stacktrace, it seems like there's a NPE in *PushHandlerActivity.java:60*, and more precisely when it tries to read the store content. Now, I don't know if it's the right place to face the problem, of if I should open a ticket somewhere else, or if it's an already known and solved bug, or if eventually it's some kind of problem related to a wrong configuration in my app. Before losing me in all this wondering, can you suggest me what to do? Could i try directly to change the java code in the class PushHandlerActivity? Should it have effect, also eventually to make a test locally? Here some information about my test conditions which could be useful. OS: Android 6.0.1 Device: Samsung S6 Aerogear Plugin Version: 3.1.0 We're talking about a cross platform application developed with Ionic 1 and Angular 1. I did not try to verify if the problem is happening also on a iOS device, but i'm gonna do it immediately after writing this reply. Do you think some other info could be useful? Thanks anyway, Federico. 2017-04-19 13:37 GMT+02:00 Summers Pittman : > The easiest tool to use is logcat with the Android emulator. Logcat is > part of the Android SDK which you installed while you were setting up your > development environment (it may have been installed by another tool but it > is there). > > All you need to do is, from the command line, run logcat. Then run your > application and wait for it to crash, and you will find the stack trace > (and a bunch of other stuff), in the log. It is possible to filter the > logcat output based on the package name of the application generating logs, > but one thing at a time. > > Summers > > On Wed, Apr 19, 2017 at 4:11 AM, Federico Cerminara < > fedecentrico at gmail.com> wrote: > >> Still not able to introduce a tool to produce a stacktrace. I know it >> would be helpful (if you have suggestions about which tool/plugin/approach >> to use...) but now i am still not able to do it. I?m a beginner in cross >> platform app development, as i said before :( >> >> 2017-04-18 17:23 GMT+02:00 Summers Pittman : >> >>> >>> >>> On Tue, Apr 18, 2017 at 10:55 AM, Federico Cerminara < >>> fedecentrico at gmail.com> wrote: >>> >>>> Hi Summers, >>>> thanks for your immediate reply. The OS on the device i am testing now >>>> is Android 6.0.1, but I don't know if it's an useful information cause I'm >>>> using Ionic 1 and Angular 1 to develop a Cross Platform App. >>>> >>>> The code is not publicly available but I can share some code pieces if >>>> you suggest me which pieces of code could help us for this analysis. >>>> >>>> It's not ax example app, I just took inspiration from the snippet of >>>> code included in Android aerogear variant and used them to complete my >>>> app.js code. >>>> >>>> How could you help me? >>>> >>> >>> Would you be able to include your stack trace from logcat when the >>> application crashes? >>> >>> I'm not as familiar with Cordova as I should be, but I should be able to >>> make heads or tails of it. >>> >>> >>>> Thanks anyway, Federico. >>>> >>>> >>>> 2017-04-18 16:33 GMT+02:00 Summers Pittman : >>>> >>>>> Frederico, >>>>> >>>>> Hi, sorry you are having trouble with UPS. If you could help us out >>>>> by answering a couple of questions that would be great. >>>>> >>>>> 1) Which OS is your applicatoin having trouble on and are you using >>>>> Cordova or native libraries? >>>>> >>>>> 2) Is your code publicly available somewhere for us to look at? >>>>> >>>>> 3) Are you using the example app or is this your own implementation? >>>>> >>>>> I know from experience that with Android one of the common problems is >>>>> that if the application has been killed by the OS then the Push libraries >>>>> have to be reinitialized before you can send metrics to the server. If you >>>>> are initializing your push libraries in an Activity class instead of the >>>>> Application class this may be something to double check. Of course if this >>>>> is iOS or Cordova then everything I just said is nonsense :) >>>>> >>>>> Summers >>>>> >>>>> On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara < >>>>> fedecentrico at gmail.com> wrote: >>>>> >>>>>> Hi, >>>>>> my name is Federico Cerminara, 35 years old, engineer and web >>>>>> developer in Rome. >>>>>> I?m a beginner in cross platform app development and I?ve started >>>>>> using aerogear cordova push plugin to enable reception of push >>>>>> notification. >>>>>> >>>>>> I?ve developed my first app. I?m able to receive correctly push >>>>>> notification, both sending them directly by aerogear admin panel after >>>>>> choosing a variant and and sending them from the application backend >>>>>> following a custom logic. If I have my app closed or already open, clicking >>>>>> on push notification seems to behave correctly, bringing user to >>>>>> application first page. Instead, if I try to close all my applications >>>>>> after receiving one or more push notification (image notification frequency >>>>>> is quite low) and then I try to click on my waiting push, application >>>>>> crashes showing a message that sound quite like this ?The program >>>>>> has been interrupted? >>>>>> >>>>>> Can you tell me a way to solve this problem? >>>>>> Thanks anyway, Federico. >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>>> >>>>> >>>> >>>> >>>> -- >>>> Puoi trovarmi qui, se vuoi: >>>> facebook , flickr >>>> , linkedin >>>> , twitter >>>> , anobii >>>> >>>> Link consigliati: Piccoli Maestri , Il >>>> clima di Cipro >>>> >>>> _______________________________________________ >>>> 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 >>> >>> >> >> >> -- >> Puoi trovarmi qui, se vuoi: >> facebook , flickr >> , linkedin >> , twitter >> , anobii >> >> Link consigliati: Piccoli Maestri , Il >> clima di Cipro >> >> _______________________________________________ >> 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 > > -- Puoi trovarmi qui, se vuoi: facebook , flickr , linkedin , twitter , anobii Link consigliati: Piccoli Maestri , Il clima di Cipro -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170420/2692ef0f/attachment.html From supittma at redhat.com Thu Apr 20 09:24:41 2017 From: supittma at redhat.com (Summers Pittman) Date: Thu, 20 Apr 2017 09:24:41 -0400 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: On Thu, Apr 20, 2017 at 6:08 AM, Federico Cerminara wrote: > Hi Summers, > first of all, i'd like to thank you for your precious suggestion. > I managed to launch my app using Android Emulator and together with the > logcat tool. > Thanks to this new approach, i was able to take some lines from the logcat > stacktrace and now i can share them in the following. > > > > > > > > > > > > > > > > > > > *04-20 11:35:44.861 31658 31658 E AndroidRuntime: > java.lang.RuntimeException: Unable to start activity > ComponentInfo{org.jboss.aerogear.android.cookbook.aerodoc/org.jboss.aerogear.cordova.push.PushHandlerActivity}: > java.lang.NullPointerException: Attempt to invoke interface method > 'java.util.Collection org.jboss.aerogear.android.store.Store.readAll()' on > a null object reference... ... ... 04-20 11:35:44.861 31658 31658 E > AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to > invoke interface method 'java.util.Collection > org.jboss.aerogear.android.store.Store.readAll()' on a null object > reference04-20 11:35:44.861 31658 31658 E AndroidRuntime: at > org.jboss.aerogear.cordova.push.PushHandlerActivity.processPushBundle(PushHandlerActivity.java:60)04-20 > 11:35:44.861 31658 31658 E AndroidRuntime: at > org.jboss.aerogear.cordova.push.PushHandlerActivity.onCreate(PushHandlerActivity.java:45)04-20 > 11:35:44.861 31658 31658 E AndroidRuntime: at > android.app.Activity.performCreate(Activity.java:6876)04-20 11:35:44.861 > 31658 31658 E AndroidRuntime: at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)04-20 > 11:35:44.861 31658 31658 E AndroidRuntime: at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)04-20 > 11:35:44.861 31658 31658 E AndroidRuntime: ... 9 more* > As i wrote in the first mail, this is the app crash scenario. If I have my > app closed or already open, clicking on push notification seems to behave > correctly, bringing user to application first page. Instead, if I try to > close all my applications after receiving one or more push notification > (image notification frequency is quite low) and then I try to click on my > waiting push, application crashes showing a message that sound quite like > this ?The program has been interrupted? > > Reading the log stacktrace, it seems like there's a NPE in > *PushHandlerActivity.java:60*, and more precisely when it tries to read > the store content. > Now, I don't know if it's the right place to face the problem, of if I > should open a ticket somewhere else, or if it's an already known and solved > bug, or if eventually it's some kind of problem related to a wrong > configuration in my app. Before losing me in all this wondering, can you > suggest me what to do? Could i try directly to change the java code in the > class PushHandlerActivity? Should it have effect, also eventually to make a > test locally? > > So 1) I think we have this bug known already ( https://issues.jboss.org/browse/AGCORDOVA-167), sorry about that. 2) If you are feeling brave you can add the null/initialization check from here : https://github.com/aerogear/aerogear-cordova-push/blob/b313fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/jboss/aerogear/cordova/push/NotificationMessageHandler.java#L43 to here : https://github.com/aerogear/aerogear-cordova-push/blob/b313fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/jboss/aerogear/cordova/push/PushHandlerActivity.java#L60 rebuild the cordova library, test it, and send a pull request if it fixes your problem. > Here some information about my test conditions which could be useful. > > OS: Android 6.0.1 > Device: Samsung S6 > Aerogear Plugin Version: 3.1.0 > > We're talking about a cross platform application developed with Ionic 1 > and Angular 1. > I did not try to verify if the problem is happening also on a iOS device, > but i'm gonna do it immediately after writing this reply. > Do you think some other info could be useful? > > Thanks anyway, Federico. > > > > > 2017-04-19 13:37 GMT+02:00 Summers Pittman : > >> The easiest tool to use is logcat with the Android emulator. Logcat is >> part of the Android SDK which you installed while you were setting up your >> development environment (it may have been installed by another tool but it >> is there). >> >> All you need to do is, from the command line, run logcat. Then run your >> application and wait for it to crash, and you will find the stack trace >> (and a bunch of other stuff), in the log. It is possible to filter the >> logcat output based on the package name of the application generating logs, >> but one thing at a time. >> >> Summers >> >> On Wed, Apr 19, 2017 at 4:11 AM, Federico Cerminara < >> fedecentrico at gmail.com> wrote: >> >>> Still not able to introduce a tool to produce a stacktrace. I know it >>> would be helpful (if you have suggestions about which tool/plugin/approach >>> to use...) but now i am still not able to do it. I?m a beginner in >>> cross platform app development, as i said before :( >>> >>> 2017-04-18 17:23 GMT+02:00 Summers Pittman : >>> >>>> >>>> >>>> On Tue, Apr 18, 2017 at 10:55 AM, Federico Cerminara < >>>> fedecentrico at gmail.com> wrote: >>>> >>>>> Hi Summers, >>>>> thanks for your immediate reply. The OS on the device i am testing now >>>>> is Android 6.0.1, but I don't know if it's an useful information cause I'm >>>>> using Ionic 1 and Angular 1 to develop a Cross Platform App. >>>>> >>>>> The code is not publicly available but I can share some code pieces if >>>>> you suggest me which pieces of code could help us for this analysis. >>>>> >>>>> It's not ax example app, I just took inspiration from the snippet of >>>>> code included in Android aerogear variant and used them to complete my >>>>> app.js code. >>>>> >>>>> How could you help me? >>>>> >>>> >>>> Would you be able to include your stack trace from logcat when the >>>> application crashes? >>>> >>>> I'm not as familiar with Cordova as I should be, but I should be able >>>> to make heads or tails of it. >>>> >>>> >>>>> Thanks anyway, Federico. >>>>> >>>>> >>>>> 2017-04-18 16:33 GMT+02:00 Summers Pittman : >>>>> >>>>>> Frederico, >>>>>> >>>>>> Hi, sorry you are having trouble with UPS. If you could help us out >>>>>> by answering a couple of questions that would be great. >>>>>> >>>>>> 1) Which OS is your applicatoin having trouble on and are you using >>>>>> Cordova or native libraries? >>>>>> >>>>>> 2) Is your code publicly available somewhere for us to look at? >>>>>> >>>>>> 3) Are you using the example app or is this your own implementation? >>>>>> >>>>>> I know from experience that with Android one of the common problems >>>>>> is that if the application has been killed by the OS then the Push >>>>>> libraries have to be reinitialized before you can send metrics to the >>>>>> server. If you are initializing your push libraries in an Activity class >>>>>> instead of the Application class this may be something to double check. Of >>>>>> course if this is iOS or Cordova then everything I just said is nonsense :) >>>>>> >>>>>> Summers >>>>>> >>>>>> On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara < >>>>>> fedecentrico at gmail.com> wrote: >>>>>> >>>>>>> Hi, >>>>>>> my name is Federico Cerminara, 35 years old, engineer and web >>>>>>> developer in Rome. >>>>>>> I?m a beginner in cross platform app development and I?ve started >>>>>>> using aerogear cordova push plugin to enable reception of push >>>>>>> notification. >>>>>>> >>>>>>> I?ve developed my first app. I?m able to receive correctly push >>>>>>> notification, both sending them directly by aerogear admin panel after >>>>>>> choosing a variant and and sending them from the application backend >>>>>>> following a custom logic. If I have my app closed or already open, clicking >>>>>>> on push notification seems to behave correctly, bringing user to >>>>>>> application first page. Instead, if I try to close all my applications >>>>>>> after receiving one or more push notification (image notification frequency >>>>>>> is quite low) and then I try to click on my waiting push, application >>>>>>> crashes showing a message that sound quite like this ?The program >>>>>>> has been interrupted? >>>>>>> >>>>>>> Can you tell me a way to solve this problem? >>>>>>> Thanks anyway, Federico. >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Puoi trovarmi qui, se vuoi: >>>>> facebook , flickr >>>>> , linkedin >>>>> , twitter >>>>> , anobii >>>>> >>>>> Link consigliati: Piccoli Maestri , Il >>>>> clima di Cipro >>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>>> >>> >>> >>> -- >>> Puoi trovarmi qui, se vuoi: >>> facebook , flickr >>> , linkedin >>> , twitter >>> , anobii >>> >>> Link consigliati: Piccoli Maestri , Il >>> clima di Cipro >>> >>> _______________________________________________ >>> 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 >> >> > > > -- > Puoi trovarmi qui, se vuoi: > facebook , flickr > , linkedin > , twitter > , anobii > > Link consigliati: Piccoli Maestri , Il > clima di Cipro > > _______________________________________________ > 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/20170420/0c36a9c8/attachment-0001.html From fedecentrico at gmail.com Thu Apr 20 10:42:38 2017 From: fedecentrico at gmail.com (Federico Cerminara) Date: Thu, 20 Apr 2017 16:42:38 +0200 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: Hi Summers, even if I am not the bravest developer I know, the main trouble is the lack of time available to spend on this job. Before deciding internally how to face the problem, I'd like to ask you if you've already scheduled a fixing activity for this bug in a future release (and eventually which could be a date to have an official fix). Instead, if you think the better approach is to trust on my bravery, I'm here to ask you how I could recompile the plugin after applyng all the modifies it requires. What can you suggest me to do? Wait anyway for a future release or start testing a solution and after sending a pull request? Thanks anyway, Federico. 2017-04-20 15:24 GMT+02:00 Summers Pittman : > > > On Thu, Apr 20, 2017 at 6:08 AM, Federico Cerminara < > fedecentrico at gmail.com> wrote: > >> Hi Summers, >> first of all, i'd like to thank you for your precious suggestion. >> I managed to launch my app using Android Emulator and together with the >> logcat tool. >> Thanks to this new approach, i was able to take some lines from the >> logcat stacktrace and now i can share them in the following. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> *04-20 11:35:44.861 31658 31658 E AndroidRuntime: >> java.lang.RuntimeException: Unable to start activity >> ComponentInfo{org.jboss.aerogear.android.cookbook.aerodoc/org.jboss.aerogear.cordova.push.PushHandlerActivity}: >> java.lang.NullPointerException: Attempt to invoke interface method >> 'java.util.Collection org.jboss.aerogear.android.store.Store.readAll()' on >> a null object reference... ... ... 04-20 11:35:44.861 31658 31658 E >> AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to >> invoke interface method 'java.util.Collection >> org.jboss.aerogear.android.store.Store.readAll()' on a null object >> reference04-20 11:35:44.861 31658 31658 E AndroidRuntime: at >> org.jboss.aerogear.cordova.push.PushHandlerActivity.processPushBundle(PushHandlerActivity.java:60)04-20 >> 11:35:44.861 31658 31658 E AndroidRuntime: at >> org.jboss.aerogear.cordova.push.PushHandlerActivity.onCreate(PushHandlerActivity.java:45)04-20 >> 11:35:44.861 31658 31658 E AndroidRuntime: at >> android.app.Activity.performCreate(Activity.java:6876)04-20 11:35:44.861 >> 31658 31658 E AndroidRuntime: at android.app.Instrumentation.ca >> llActivityOnCreate(Instrumentation.java:1135)04-20 >> 11:35:44.861 31658 31658 E AndroidRuntime: at >> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)04-20 >> 11:35:44.861 31658 31658 E AndroidRuntime: ... 9 more* >> As i wrote in the first mail, this is the app crash scenario. If I have >> my app closed or already open, clicking on push notification seems to >> behave correctly, bringing user to application first page. Instead, if I >> try to close all my applications after receiving one or more push >> notification (image notification frequency is quite low) and then I try to >> click on my waiting push, application crashes showing a message that sound >> quite like this ?The program has been interrupted? >> >> Reading the log stacktrace, it seems like there's a NPE in >> *PushHandlerActivity.java:60*, and more precisely when it tries to read >> the store content. >> Now, I don't know if it's the right place to face the problem, of if I >> should open a ticket somewhere else, or if it's an already known and solved >> bug, or if eventually it's some kind of problem related to a wrong >> configuration in my app. Before losing me in all this wondering, can you >> suggest me what to do? Could i try directly to change the java code in the >> class PushHandlerActivity? Should it have effect, also eventually to make a >> test locally? >> >> > So 1) I think we have this bug known already (https://issues.jboss.org/ > browse/AGCORDOVA-167), sorry about that. > > 2) If you are feeling brave you can add the null/initialization check from > here : > > https://github.com/aerogear/aerogear-cordova-push/blob/ > b313fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/ > jboss/aerogear/cordova/push/NotificationMessageHandler.java#L43 > > to here : > > https://github.com/aerogear/aerogear-cordova-push/blob/ > b313fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/ > jboss/aerogear/cordova/push/PushHandlerActivity.java#L60 > > rebuild the cordova library, test it, and send a pull request if it fixes > your problem. > > >> Here some information about my test conditions which could be useful. >> >> OS: Android 6.0.1 >> Device: Samsung S6 >> Aerogear Plugin Version: 3.1.0 >> >> We're talking about a cross platform application developed with Ionic 1 >> and Angular 1. >> I did not try to verify if the problem is happening also on a iOS device, >> but i'm gonna do it immediately after writing this reply. >> Do you think some other info could be useful? >> >> Thanks anyway, Federico. >> >> >> >> >> 2017-04-19 13:37 GMT+02:00 Summers Pittman : >> >>> The easiest tool to use is logcat with the Android emulator. Logcat is >>> part of the Android SDK which you installed while you were setting up your >>> development environment (it may have been installed by another tool but it >>> is there). >>> >>> All you need to do is, from the command line, run logcat. Then run your >>> application and wait for it to crash, and you will find the stack trace >>> (and a bunch of other stuff), in the log. It is possible to filter the >>> logcat output based on the package name of the application generating logs, >>> but one thing at a time. >>> >>> Summers >>> >>> On Wed, Apr 19, 2017 at 4:11 AM, Federico Cerminara < >>> fedecentrico at gmail.com> wrote: >>> >>>> Still not able to introduce a tool to produce a stacktrace. I know it >>>> would be helpful (if you have suggestions about which tool/plugin/approach >>>> to use...) but now i am still not able to do it. I?m a beginner in >>>> cross platform app development, as i said before :( >>>> >>>> 2017-04-18 17:23 GMT+02:00 Summers Pittman : >>>> >>>>> >>>>> >>>>> On Tue, Apr 18, 2017 at 10:55 AM, Federico Cerminara < >>>>> fedecentrico at gmail.com> wrote: >>>>> >>>>>> Hi Summers, >>>>>> thanks for your immediate reply. The OS on the device i am testing >>>>>> now is Android 6.0.1, but I don't know if it's an useful information cause >>>>>> I'm using Ionic 1 and Angular 1 to develop a Cross Platform App. >>>>>> >>>>>> The code is not publicly available but I can share some code pieces >>>>>> if you suggest me which pieces of code could help us for this analysis. >>>>>> >>>>>> It's not ax example app, I just took inspiration from the snippet of >>>>>> code included in Android aerogear variant and used them to complete my >>>>>> app.js code. >>>>>> >>>>>> How could you help me? >>>>>> >>>>> >>>>> Would you be able to include your stack trace from logcat when the >>>>> application crashes? >>>>> >>>>> I'm not as familiar with Cordova as I should be, but I should be able >>>>> to make heads or tails of it. >>>>> >>>>> >>>>>> Thanks anyway, Federico. >>>>>> >>>>>> >>>>>> 2017-04-18 16:33 GMT+02:00 Summers Pittman : >>>>>> >>>>>>> Frederico, >>>>>>> >>>>>>> Hi, sorry you are having trouble with UPS. If you could help us out >>>>>>> by answering a couple of questions that would be great. >>>>>>> >>>>>>> 1) Which OS is your applicatoin having trouble on and are you using >>>>>>> Cordova or native libraries? >>>>>>> >>>>>>> 2) Is your code publicly available somewhere for us to look at? >>>>>>> >>>>>>> 3) Are you using the example app or is this your own implementation? >>>>>>> >>>>>>> I know from experience that with Android one of the common problems >>>>>>> is that if the application has been killed by the OS then the Push >>>>>>> libraries have to be reinitialized before you can send metrics to the >>>>>>> server. If you are initializing your push libraries in an Activity class >>>>>>> instead of the Application class this may be something to double check. Of >>>>>>> course if this is iOS or Cordova then everything I just said is nonsense :) >>>>>>> >>>>>>> Summers >>>>>>> >>>>>>> On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara < >>>>>>> fedecentrico at gmail.com> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> my name is Federico Cerminara, 35 years old, engineer and web >>>>>>>> developer in Rome. >>>>>>>> I?m a beginner in cross platform app development and I?ve started >>>>>>>> using aerogear cordova push plugin to enable reception of push >>>>>>>> notification. >>>>>>>> >>>>>>>> I?ve developed my first app. I?m able to receive correctly push >>>>>>>> notification, both sending them directly by aerogear admin panel after >>>>>>>> choosing a variant and and sending them from the application backend >>>>>>>> following a custom logic. If I have my app closed or already open, clicking >>>>>>>> on push notification seems to behave correctly, bringing user to >>>>>>>> application first page. Instead, if I try to close all my applications >>>>>>>> after receiving one or more push notification (image notification frequency >>>>>>>> is quite low) and then I try to click on my waiting push, application >>>>>>>> crashes showing a message that sound quite like this ?The program >>>>>>>> has been interrupted? >>>>>>>> >>>>>>>> Can you tell me a way to solve this problem? >>>>>>>> Thanks anyway, Federico. >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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/20170420/c9a3a108/attachment.html From supittma at redhat.com Thu Apr 20 11:43:00 2017 From: supittma at redhat.com (Summers Pittman) Date: Thu, 20 Apr 2017 11:43:00 -0400 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: On Thu, Apr 20, 2017 at 10:42 AM, Federico Cerminara wrote: > Hi Summers, > even if I am not the bravest developer I know, the main trouble is the > lack of time available to spend on this job. Before deciding internally how > to face the problem, I'd like to ask you if you've already scheduled a > fixing activity for this bug in a future release (and eventually which > could be a date to have an official fix). > Instead, if you think the better approach is to trust on my bravery, I'm > here to ask you how I could recompile the plugin after applyng all the > modifies it requires. What can you suggest me to do? Wait anyway for a > future release or start testing a solution and after sending a pull > request? > > Well it isn't my project so I can't make any timeline commitments. However if you send a pull request it makes it easier to bundle a release. I suggest you read the Cordova developer docs to learn how to write a plugin, they teach you how to compile it for the various platforms as well. > Thanks anyway, Federico. > > > > > 2017-04-20 15:24 GMT+02:00 Summers Pittman : > >> >> >> On Thu, Apr 20, 2017 at 6:08 AM, Federico Cerminara < >> fedecentrico at gmail.com> wrote: >> >>> Hi Summers, >>> first of all, i'd like to thank you for your precious suggestion. >>> I managed to launch my app using Android Emulator and together with the >>> logcat tool. >>> Thanks to this new approach, i was able to take some lines from the >>> logcat stacktrace and now i can share them in the following. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> *04-20 11:35:44.861 31658 31658 E AndroidRuntime: >>> java.lang.RuntimeException: Unable to start activity >>> ComponentInfo{org.jboss.aerogear.android.cookbook.aerodoc/org.jboss.aerogear.cordova.push.PushHandlerActivity}: >>> java.lang.NullPointerException: Attempt to invoke interface method >>> 'java.util.Collection org.jboss.aerogear.android.store.Store.readAll()' on >>> a null object reference... ... ... 04-20 11:35:44.861 31658 31658 E >>> AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to >>> invoke interface method 'java.util.Collection >>> org.jboss.aerogear.android.store.Store.readAll()' on a null object >>> reference04-20 11:35:44.861 31658 31658 E AndroidRuntime: at >>> org.jboss.aerogear.cordova.push.PushHandlerActivity.processPushBundle(PushHandlerActivity.java:60)04-20 >>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>> org.jboss.aerogear.cordova.push.PushHandlerActivity.onCreate(PushHandlerActivity.java:45)04-20 >>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>> android.app.Activity.performCreate(Activity.java:6876)04-20 11:35:44.861 >>> 31658 31658 E AndroidRuntime: at android.app.Instrumentation.ca >>> llActivityOnCreate(Instrumentation.java:1135)04-20 >>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)04-20 >>> 11:35:44.861 31658 31658 E AndroidRuntime: ... 9 more* >>> As i wrote in the first mail, this is the app crash scenario. If I have >>> my app closed or already open, clicking on push notification seems to >>> behave correctly, bringing user to application first page. Instead, if I >>> try to close all my applications after receiving one or more push >>> notification (image notification frequency is quite low) and then I try to >>> click on my waiting push, application crashes showing a message that sound >>> quite like this ?The program has been interrupted? >>> >>> Reading the log stacktrace, it seems like there's a NPE in >>> *PushHandlerActivity.java:60*, and more precisely when it tries to read >>> the store content. >>> Now, I don't know if it's the right place to face the problem, of if I >>> should open a ticket somewhere else, or if it's an already known and solved >>> bug, or if eventually it's some kind of problem related to a wrong >>> configuration in my app. Before losing me in all this wondering, can you >>> suggest me what to do? Could i try directly to change the java code in the >>> class PushHandlerActivity? Should it have effect, also eventually to make a >>> test locally? >>> >>> >> So 1) I think we have this bug known already ( >> https://issues.jboss.org/browse/AGCORDOVA-167), sorry about that. >> >> 2) If you are feeling brave you can add the null/initialization check >> from here : >> >> https://github.com/aerogear/aerogear-cordova-push/blob/b313 >> fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/jboss/ >> aerogear/cordova/push/NotificationMessageHandler.java#L43 >> >> to here : >> >> https://github.com/aerogear/aerogear-cordova-push/blob/b31 >> 3fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/jboss/ >> aerogear/cordova/push/PushHandlerActivity.java#L60 >> >> rebuild the cordova library, test it, and send a pull request if it fixes >> your problem. >> >> >>> Here some information about my test conditions which could be useful. >>> >>> OS: Android 6.0.1 >>> Device: Samsung S6 >>> Aerogear Plugin Version: 3.1.0 >>> >>> We're talking about a cross platform application developed with Ionic 1 >>> and Angular 1. >>> I did not try to verify if the problem is happening also on a iOS >>> device, but i'm gonna do it immediately after writing this reply. >>> Do you think some other info could be useful? >>> >>> Thanks anyway, Federico. >>> >>> >>> >>> >>> 2017-04-19 13:37 GMT+02:00 Summers Pittman : >>> >>>> The easiest tool to use is logcat with the Android emulator. Logcat is >>>> part of the Android SDK which you installed while you were setting up your >>>> development environment (it may have been installed by another tool but it >>>> is there). >>>> >>>> All you need to do is, from the command line, run logcat. Then run >>>> your application and wait for it to crash, and you will find the stack >>>> trace (and a bunch of other stuff), in the log. It is possible to filter >>>> the logcat output based on the package name of the application generating >>>> logs, but one thing at a time. >>>> >>>> Summers >>>> >>>> On Wed, Apr 19, 2017 at 4:11 AM, Federico Cerminara < >>>> fedecentrico at gmail.com> wrote: >>>> >>>>> Still not able to introduce a tool to produce a stacktrace. I know it >>>>> would be helpful (if you have suggestions about which tool/plugin/approach >>>>> to use...) but now i am still not able to do it. I?m a beginner in >>>>> cross platform app development, as i said before :( >>>>> >>>>> 2017-04-18 17:23 GMT+02:00 Summers Pittman : >>>>> >>>>>> >>>>>> >>>>>> On Tue, Apr 18, 2017 at 10:55 AM, Federico Cerminara < >>>>>> fedecentrico at gmail.com> wrote: >>>>>> >>>>>>> Hi Summers, >>>>>>> thanks for your immediate reply. The OS on the device i am testing >>>>>>> now is Android 6.0.1, but I don't know if it's an useful information cause >>>>>>> I'm using Ionic 1 and Angular 1 to develop a Cross Platform App. >>>>>>> >>>>>>> The code is not publicly available but I can share some code pieces >>>>>>> if you suggest me which pieces of code could help us for this analysis. >>>>>>> >>>>>>> It's not ax example app, I just took inspiration from the snippet of >>>>>>> code included in Android aerogear variant and used them to complete my >>>>>>> app.js code. >>>>>>> >>>>>>> How could you help me? >>>>>>> >>>>>> >>>>>> Would you be able to include your stack trace from logcat when the >>>>>> application crashes? >>>>>> >>>>>> I'm not as familiar with Cordova as I should be, but I should be able >>>>>> to make heads or tails of it. >>>>>> >>>>>> >>>>>>> Thanks anyway, Federico. >>>>>>> >>>>>>> >>>>>>> 2017-04-18 16:33 GMT+02:00 Summers Pittman : >>>>>>> >>>>>>>> Frederico, >>>>>>>> >>>>>>>> Hi, sorry you are having trouble with UPS. If you could help us >>>>>>>> out by answering a couple of questions that would be great. >>>>>>>> >>>>>>>> 1) Which OS is your applicatoin having trouble on and are you using >>>>>>>> Cordova or native libraries? >>>>>>>> >>>>>>>> 2) Is your code publicly available somewhere for us to look at? >>>>>>>> >>>>>>>> 3) Are you using the example app or is this your own implementation? >>>>>>>> >>>>>>>> I know from experience that with Android one of the common problems >>>>>>>> is that if the application has been killed by the OS then the Push >>>>>>>> libraries have to be reinitialized before you can send metrics to the >>>>>>>> server. If you are initializing your push libraries in an Activity class >>>>>>>> instead of the Application class this may be something to double check. Of >>>>>>>> course if this is iOS or Cordova then everything I just said is nonsense :) >>>>>>>> >>>>>>>> Summers >>>>>>>> >>>>>>>> On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara < >>>>>>>> fedecentrico at gmail.com> wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> my name is Federico Cerminara, 35 years old, engineer and web >>>>>>>>> developer in Rome. >>>>>>>>> I?m a beginner in cross platform app development and I?ve started >>>>>>>>> using aerogear cordova push plugin to enable reception of push >>>>>>>>> notification. >>>>>>>>> >>>>>>>>> I?ve developed my first app. I?m able to receive correctly push >>>>>>>>> notification, both sending them directly by aerogear admin panel after >>>>>>>>> choosing a variant and and sending them from the application backend >>>>>>>>> following a custom logic. If I have my app closed or already open, clicking >>>>>>>>> on push notification seems to behave correctly, bringing user to >>>>>>>>> application first page. Instead, if I try to close all my applications >>>>>>>>> after receiving one or more push notification (image notification frequency >>>>>>>>> is quite low) and then I try to click on my waiting push, application >>>>>>>>> crashes showing a message that sound quite like this ?The program >>>>>>>>> has been interrupted? >>>>>>>>> >>>>>>>>> Can you tell me a way to solve this problem? >>>>>>>>> Thanks anyway, Federico. >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> 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/20170420/cf1b708d/attachment-0001.html From fedecentrico at gmail.com Fri Apr 21 02:37:03 2017 From: fedecentrico at gmail.com (Federico Cerminara) Date: Fri, 21 Apr 2017 08:37:03 +0200 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: Summers, I'd like to thank you for all your important support. I'm gonna have a look at Cordova developer docs. Eventually I'll try to write you again if there are some specific question about the bug fix. Have a nice day and thanks again for everything. Federico 2017-04-20 17:43 GMT+02:00 Summers Pittman : > > > On Thu, Apr 20, 2017 at 10:42 AM, Federico Cerminara < > fedecentrico at gmail.com> wrote: > >> Hi Summers, >> even if I am not the bravest developer I know, the main trouble is the >> lack of time available to spend on this job. Before deciding internally how >> to face the problem, I'd like to ask you if you've already scheduled a >> fixing activity for this bug in a future release (and eventually which >> could be a date to have an official fix). >> Instead, if you think the better approach is to trust on my bravery, I'm >> here to ask you how I could recompile the plugin after applyng all the >> modifies it requires. What can you suggest me to do? Wait anyway for a >> future release or start testing a solution and after sending a pull >> request? >> >> > Well it isn't my project so I can't make any timeline commitments. > However if you send a pull request it makes it easier to bundle a release. > > I suggest you read the Cordova developer docs to learn how to write a > plugin, they teach you how to compile it for the various platforms as well. > > >> Thanks anyway, Federico. >> >> >> >> >> 2017-04-20 15:24 GMT+02:00 Summers Pittman : >> >>> >>> >>> On Thu, Apr 20, 2017 at 6:08 AM, Federico Cerminara < >>> fedecentrico at gmail.com> wrote: >>> >>>> Hi Summers, >>>> first of all, i'd like to thank you for your precious suggestion. >>>> I managed to launch my app using Android Emulator and together with the >>>> logcat tool. >>>> Thanks to this new approach, i was able to take some lines from the >>>> logcat stacktrace and now i can share them in the following. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> *04-20 11:35:44.861 31658 31658 E AndroidRuntime: >>>> java.lang.RuntimeException: Unable to start activity >>>> ComponentInfo{org.jboss.aerogear.android.cookbook.aerodoc/org.jboss.aerogear.cordova.push.PushHandlerActivity}: >>>> java.lang.NullPointerException: Attempt to invoke interface method >>>> 'java.util.Collection org.jboss.aerogear.android.store.Store.readAll()' on >>>> a null object reference... ... ... 04-20 11:35:44.861 31658 31658 E >>>> AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to >>>> invoke interface method 'java.util.Collection >>>> org.jboss.aerogear.android.store.Store.readAll()' on a null object >>>> reference04-20 11:35:44.861 31658 31658 E AndroidRuntime: at >>>> org.jboss.aerogear.cordova.push.PushHandlerActivity.processPushBundle(PushHandlerActivity.java:60)04-20 >>>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>>> org.jboss.aerogear.cordova.push.PushHandlerActivity.onCreate(PushHandlerActivity.java:45)04-20 >>>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>>> android.app.Activity.performCreate(Activity.java:6876)04-20 11:35:44.861 >>>> 31658 31658 E AndroidRuntime: at android.app.Instrumentation.ca >>>> llActivityOnCreate(Instrumentation.java:1135)04-20 >>>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)04-20 >>>> 11:35:44.861 31658 31658 E AndroidRuntime: ... 9 more* >>>> As i wrote in the first mail, this is the app crash scenario. If I have >>>> my app closed or already open, clicking on push notification seems to >>>> behave correctly, bringing user to application first page. Instead, if I >>>> try to close all my applications after receiving one or more push >>>> notification (image notification frequency is quite low) and then I try to >>>> click on my waiting push, application crashes showing a message that sound >>>> quite like this ?The program has been interrupted? >>>> >>>> Reading the log stacktrace, it seems like there's a NPE in >>>> *PushHandlerActivity.java:60*, and more precisely when it tries to >>>> read the store content. >>>> Now, I don't know if it's the right place to face the problem, of if I >>>> should open a ticket somewhere else, or if it's an already known and solved >>>> bug, or if eventually it's some kind of problem related to a wrong >>>> configuration in my app. Before losing me in all this wondering, can you >>>> suggest me what to do? Could i try directly to change the java code in the >>>> class PushHandlerActivity? Should it have effect, also eventually to make a >>>> test locally? >>>> >>>> >>> So 1) I think we have this bug known already ( >>> https://issues.jboss.org/browse/AGCORDOVA-167), sorry about that. >>> >>> 2) If you are feeling brave you can add the null/initialization check >>> from here : >>> >>> https://github.com/aerogear/aerogear-cordova-push/blob/b313 >>> fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/jboss/a >>> erogear/cordova/push/NotificationMessageHandler.java#L43 >>> >>> to here : >>> >>> https://github.com/aerogear/aerogear-cordova-push/blob/b31 >>> 3fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/jboss/ >>> aerogear/cordova/push/PushHandlerActivity.java#L60 >>> >>> rebuild the cordova library, test it, and send a pull request if it >>> fixes your problem. >>> >>> >>>> Here some information about my test conditions which could be useful. >>>> >>>> OS: Android 6.0.1 >>>> Device: Samsung S6 >>>> Aerogear Plugin Version: 3.1.0 >>>> >>>> We're talking about a cross platform application developed with Ionic 1 >>>> and Angular 1. >>>> I did not try to verify if the problem is happening also on a iOS >>>> device, but i'm gonna do it immediately after writing this reply. >>>> Do you think some other info could be useful? >>>> >>>> Thanks anyway, Federico. >>>> >>>> >>>> >>>> >>>> 2017-04-19 13:37 GMT+02:00 Summers Pittman : >>>> >>>>> The easiest tool to use is logcat with the Android emulator. Logcat >>>>> is part of the Android SDK which you installed while you were setting up >>>>> your development environment (it may have been installed by another tool >>>>> but it is there). >>>>> >>>>> All you need to do is, from the command line, run logcat. Then run >>>>> your application and wait for it to crash, and you will find the stack >>>>> trace (and a bunch of other stuff), in the log. It is possible to filter >>>>> the logcat output based on the package name of the application generating >>>>> logs, but one thing at a time. >>>>> >>>>> Summers >>>>> >>>>> On Wed, Apr 19, 2017 at 4:11 AM, Federico Cerminara < >>>>> fedecentrico at gmail.com> wrote: >>>>> >>>>>> Still not able to introduce a tool to produce a stacktrace. I know it >>>>>> would be helpful (if you have suggestions about which tool/plugin/approach >>>>>> to use...) but now i am still not able to do it. I?m a beginner in >>>>>> cross platform app development, as i said before :( >>>>>> >>>>>> 2017-04-18 17:23 GMT+02:00 Summers Pittman : >>>>>> >>>>>>> >>>>>>> >>>>>>> On Tue, Apr 18, 2017 at 10:55 AM, Federico Cerminara < >>>>>>> fedecentrico at gmail.com> wrote: >>>>>>> >>>>>>>> Hi Summers, >>>>>>>> thanks for your immediate reply. The OS on the device i am testing >>>>>>>> now is Android 6.0.1, but I don't know if it's an useful information cause >>>>>>>> I'm using Ionic 1 and Angular 1 to develop a Cross Platform App. >>>>>>>> >>>>>>>> The code is not publicly available but I can share some code pieces >>>>>>>> if you suggest me which pieces of code could help us for this analysis. >>>>>>>> >>>>>>>> It's not ax example app, I just took inspiration from the snippet >>>>>>>> of code included in Android aerogear variant and used them to complete my >>>>>>>> app.js code. >>>>>>>> >>>>>>>> How could you help me? >>>>>>>> >>>>>>> >>>>>>> Would you be able to include your stack trace from logcat when the >>>>>>> application crashes? >>>>>>> >>>>>>> I'm not as familiar with Cordova as I should be, but I should be >>>>>>> able to make heads or tails of it. >>>>>>> >>>>>>> >>>>>>>> Thanks anyway, Federico. >>>>>>>> >>>>>>>> >>>>>>>> 2017-04-18 16:33 GMT+02:00 Summers Pittman : >>>>>>>> >>>>>>>>> Frederico, >>>>>>>>> >>>>>>>>> Hi, sorry you are having trouble with UPS. If you could help us >>>>>>>>> out by answering a couple of questions that would be great. >>>>>>>>> >>>>>>>>> 1) Which OS is your applicatoin having trouble on and are you >>>>>>>>> using Cordova or native libraries? >>>>>>>>> >>>>>>>>> 2) Is your code publicly available somewhere for us to look at? >>>>>>>>> >>>>>>>>> 3) Are you using the example app or is this your own >>>>>>>>> implementation? >>>>>>>>> >>>>>>>>> I know from experience that with Android one of the common >>>>>>>>> problems is that if the application has been killed by the OS then the Push >>>>>>>>> libraries have to be reinitialized before you can send metrics to the >>>>>>>>> server. If you are initializing your push libraries in an Activity class >>>>>>>>> instead of the Application class this may be something to double check. Of >>>>>>>>> course if this is iOS or Cordova then everything I just said is nonsense :) >>>>>>>>> >>>>>>>>> Summers >>>>>>>>> >>>>>>>>> On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara < >>>>>>>>> fedecentrico at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> my name is Federico Cerminara, 35 years old, engineer and web >>>>>>>>>> developer in Rome. >>>>>>>>>> I?m a beginner in cross platform app development and I?ve started >>>>>>>>>> using aerogear cordova push plugin to enable reception of push >>>>>>>>>> notification. >>>>>>>>>> >>>>>>>>>> I?ve developed my first app. I?m able to receive correctly push >>>>>>>>>> notification, both sending them directly by aerogear admin panel after >>>>>>>>>> choosing a variant and and sending them from the application backend >>>>>>>>>> following a custom logic. If I have my app closed or already open, clicking >>>>>>>>>> on push notification seems to behave correctly, bringing user to >>>>>>>>>> application first page. Instead, if I try to close all my applications >>>>>>>>>> after receiving one or more push notification (image notification frequency >>>>>>>>>> is quite low) and then I try to click on my waiting push, application >>>>>>>>>> crashes showing a message that sound quite like this ?The program >>>>>>>>>> has been interrupted? >>>>>>>>>> >>>>>>>>>> Can you tell me a way to solve this problem? >>>>>>>>>> Thanks anyway, Federico. >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> 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/20170421/282c9855/attachment-0001.html From cristian.morariu at gmail.com Mon Apr 24 02:25:55 2017 From: cristian.morariu at gmail.com (Cristian Morariu) Date: Mon, 24 Apr 2017 08:25:55 +0200 Subject: [Aerogear-users] Unified Push Server License Message-ID: Hi, I would like to deploy UPS in production for a customer. Do I need any license for the unified push server, or any of its dependencies (jboss, etc..)? Thank you, Cristian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170424/069bba5b/attachment.html From matzew at apache.org Mon Apr 24 22:02:14 2017 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 25 Apr 2017 02:02:14 +0000 Subject: [Aerogear-users] Unified Push Server License In-Reply-To: References: Message-ID: Hi, thanks for the interest in the UPS. It's all OSS software, not requiring any commercial license On Mon, 24 Apr 2017 at 08:29, Cristian Morariu wrote: > Hi, > > I would like to deploy UPS in production for a customer. Do I need any > license for the unified push server, or any of its dependencies (jboss, > etc..)? > > Thank you, > Cristian > _______________________________________________ > 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/20170425/f816e862/attachment.html From fedecentrico at gmail.com Fri Apr 28 05:56:24 2017 From: fedecentrico at gmail.com (Federico Cerminara) Date: Fri, 28 Apr 2017 11:56:24 +0200 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: Hi Summers, following your notes, I found some tutorials about hot to modify a plugin Java source code (and, againg, I'd like to thank you for this). Comparing them, I thought the best approach was to remove the plugin and after add it again (specifying this time in the ?cordova plugin add? command a folder in my filesystem containing the plugin) after having modified the source code related to the bug fix. Using aerogear cordova plugin forces me to do something similar trying to generate apk/ipa using Intel XDK environment because the build process does not like a reference to src/android/dependencies.gradle in plugin.xml file (so I have the remove the plugin, download it locally, hide the reference, then add the plugin again by specifying a local folder in Intel XDK interface). The first question is: can I use my "new/modified" plugin ?easily? or should I worry about some license violations? If you have suggested me to try myself to modify plugin behavior in order to fix the null pointer exception problem, can I presume I can use the plugin even after making it different from your baseline version? Second point. I?m gonna describe the changes I?ve applied to the Java code, which are quite similar to what you told me with those links. It seems now the plugin works correctly but we'll continue to test it to be sure. May you confirm however this could be the right solution? In *PushHandlerActivity.java* I modified the following source line: *Store store = DataManager.getStore("messageStore");* with these: *SQLStore store = (SQLStore)DataManager.getStore("messageStore");if (store == null) { store = (SQLStore) DataManager.config("messageStore", SQLStoreConfiguration.class).withContext(this.getApplicationContext()).store(Message.class); store.openSync();} * As you can see, I changed the store type from Store to SQLStore to alline it with the source code in NotificationMessageHandler.java. Moreover, because I needed a context object, I resolved the context by invoking *this.getApplicationContext()* (such it was an activity class). Just for completeness, I introduced the needed imports in the right section for SQLStore and SQLStoreConfiguration. To avoid some other null pointer exception troubles, I added another not null check before cycling the message collection. Now the cycle starts if and only if collection is not null. *if(collection!=null){ for (Message message : collection){ ... .... } } * Do you think there?s something wrong or something I?ve not evaluated applying these changes? As usually, and before closing this mail, I?d like to thank you again: your help has been important to facilitate us some precious steps. Thanks so for all your support. Just a last thing. Let's image all these changes are correct; in some of your last messages you told me to send eventually a pull request. How can I do it? This should be really all. Federico 2017-04-21 8:37 GMT+02:00 Federico Cerminara : > Summers, > I'd like to thank you for all your important support. > I'm gonna have a look at Cordova developer docs. > Eventually I'll try to write you again if there are some specific question > about the bug fix. > Have a nice day and thanks again for everything. > Federico > > > 2017-04-20 17:43 GMT+02:00 Summers Pittman : > >> >> >> On Thu, Apr 20, 2017 at 10:42 AM, Federico Cerminara < >> fedecentrico at gmail.com> wrote: >> >>> Hi Summers, >>> even if I am not the bravest developer I know, the main trouble is the >>> lack of time available to spend on this job. Before deciding internally how >>> to face the problem, I'd like to ask you if you've already scheduled a >>> fixing activity for this bug in a future release (and eventually which >>> could be a date to have an official fix). >>> Instead, if you think the better approach is to trust on my bravery, I'm >>> here to ask you how I could recompile the plugin after applyng all the >>> modifies it requires. What can you suggest me to do? Wait anyway for a >>> future release or start testing a solution and after sending a pull >>> request? >>> >>> >> Well it isn't my project so I can't make any timeline commitments. >> However if you send a pull request it makes it easier to bundle a release. >> >> I suggest you read the Cordova developer docs to learn how to write a >> plugin, they teach you how to compile it for the various platforms as well. >> >> >>> Thanks anyway, Federico. >>> >>> >>> >>> >>> 2017-04-20 15:24 GMT+02:00 Summers Pittman : >>> >>>> >>>> >>>> On Thu, Apr 20, 2017 at 6:08 AM, Federico Cerminara < >>>> fedecentrico at gmail.com> wrote: >>>> >>>>> Hi Summers, >>>>> first of all, i'd like to thank you for your precious suggestion. >>>>> I managed to launch my app using Android Emulator and together with >>>>> the logcat tool. >>>>> Thanks to this new approach, i was able to take some lines from the >>>>> logcat stacktrace and now i can share them in the following. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> *04-20 11:35:44.861 31658 31658 E AndroidRuntime: >>>>> java.lang.RuntimeException: Unable to start activity >>>>> ComponentInfo{org.jboss.aerogear.android.cookbook.aerodoc/org.jboss.aerogear.cordova.push.PushHandlerActivity}: >>>>> java.lang.NullPointerException: Attempt to invoke interface method >>>>> 'java.util.Collection org.jboss.aerogear.android.store.Store.readAll()' on >>>>> a null object reference... ... ... 04-20 11:35:44.861 31658 31658 E >>>>> AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to >>>>> invoke interface method 'java.util.Collection >>>>> org.jboss.aerogear.android.store.Store.readAll()' on a null object >>>>> reference04-20 11:35:44.861 31658 31658 E AndroidRuntime: at >>>>> org.jboss.aerogear.cordova.push.PushHandlerActivity.processPushBundle(PushHandlerActivity.java:60)04-20 >>>>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>>>> org.jboss.aerogear.cordova.push.PushHandlerActivity.onCreate(PushHandlerActivity.java:45)04-20 >>>>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>>>> android.app.Activity.performCreate(Activity.java:6876)04-20 11:35:44.861 >>>>> 31658 31658 E AndroidRuntime: at android.app.Instrumentation.ca >>>>> llActivityOnCreate(Instrumentation.java:1135)04-20 >>>>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>>>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)04-20 >>>>> 11:35:44.861 31658 31658 E AndroidRuntime: ... 9 more* >>>>> As i wrote in the first mail, this is the app crash scenario. If I >>>>> have my app closed or already open, clicking on push notification seems to >>>>> behave correctly, bringing user to application first page. Instead, if I >>>>> try to close all my applications after receiving one or more push >>>>> notification (image notification frequency is quite low) and then I try to >>>>> click on my waiting push, application crashes showing a message that sound >>>>> quite like this ?The program has been interrupted? >>>>> >>>>> Reading the log stacktrace, it seems like there's a NPE in >>>>> *PushHandlerActivity.java:60*, and more precisely when it tries to >>>>> read the store content. >>>>> Now, I don't know if it's the right place to face the problem, of if I >>>>> should open a ticket somewhere else, or if it's an already known and solved >>>>> bug, or if eventually it's some kind of problem related to a wrong >>>>> configuration in my app. Before losing me in all this wondering, can you >>>>> suggest me what to do? Could i try directly to change the java code in the >>>>> class PushHandlerActivity? Should it have effect, also eventually to make a >>>>> test locally? >>>>> >>>>> >>>> So 1) I think we have this bug known already ( >>>> https://issues.jboss.org/browse/AGCORDOVA-167), sorry about that. >>>> >>>> 2) If you are feeling brave you can add the null/initialization check >>>> from here : >>>> >>>> https://github.com/aerogear/aerogear-cordova-push/blob/b313 >>>> fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/jboss/a >>>> erogear/cordova/push/NotificationMessageHandler.java#L43 >>>> >>>> to here : >>>> >>>> https://github.com/aerogear/aerogear-cordova-push/blob/b31 >>>> 3fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/jboss/ >>>> aerogear/cordova/push/PushHandlerActivity.java#L60 >>>> >>>> rebuild the cordova library, test it, and send a pull request if it >>>> fixes your problem. >>>> >>>> >>>>> Here some information about my test conditions which could be useful. >>>>> >>>>> OS: Android 6.0.1 >>>>> Device: Samsung S6 >>>>> Aerogear Plugin Version: 3.1.0 >>>>> >>>>> We're talking about a cross platform application developed with Ionic >>>>> 1 and Angular 1. >>>>> I did not try to verify if the problem is happening also on a iOS >>>>> device, but i'm gonna do it immediately after writing this reply. >>>>> Do you think some other info could be useful? >>>>> >>>>> Thanks anyway, Federico. >>>>> >>>>> >>>>> >>>>> >>>>> 2017-04-19 13:37 GMT+02:00 Summers Pittman : >>>>> >>>>>> The easiest tool to use is logcat with the Android emulator. Logcat >>>>>> is part of the Android SDK which you installed while you were setting up >>>>>> your development environment (it may have been installed by another tool >>>>>> but it is there). >>>>>> >>>>>> All you need to do is, from the command line, run logcat. Then run >>>>>> your application and wait for it to crash, and you will find the stack >>>>>> trace (and a bunch of other stuff), in the log. It is possible to filter >>>>>> the logcat output based on the package name of the application generating >>>>>> logs, but one thing at a time. >>>>>> >>>>>> Summers >>>>>> >>>>>> On Wed, Apr 19, 2017 at 4:11 AM, Federico Cerminara < >>>>>> fedecentrico at gmail.com> wrote: >>>>>> >>>>>>> Still not able to introduce a tool to produce a stacktrace. I know >>>>>>> it would be helpful (if you have suggestions about which >>>>>>> tool/plugin/approach to use...) but now i am still not able to do it. I?m >>>>>>> a beginner in cross platform app development, as i said before :( >>>>>>> >>>>>>> 2017-04-18 17:23 GMT+02:00 Summers Pittman : >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Tue, Apr 18, 2017 at 10:55 AM, Federico Cerminara < >>>>>>>> fedecentrico at gmail.com> wrote: >>>>>>>> >>>>>>>>> Hi Summers, >>>>>>>>> thanks for your immediate reply. The OS on the device i am testing >>>>>>>>> now is Android 6.0.1, but I don't know if it's an useful information cause >>>>>>>>> I'm using Ionic 1 and Angular 1 to develop a Cross Platform App. >>>>>>>>> >>>>>>>>> The code is not publicly available but I can share some code >>>>>>>>> pieces if you suggest me which pieces of code could help us for this >>>>>>>>> analysis. >>>>>>>>> >>>>>>>>> It's not ax example app, I just took inspiration from the snippet >>>>>>>>> of code included in Android aerogear variant and used them to complete my >>>>>>>>> app.js code. >>>>>>>>> >>>>>>>>> How could you help me? >>>>>>>>> >>>>>>>> >>>>>>>> Would you be able to include your stack trace from logcat when the >>>>>>>> application crashes? >>>>>>>> >>>>>>>> I'm not as familiar with Cordova as I should be, but I should be >>>>>>>> able to make heads or tails of it. >>>>>>>> >>>>>>>> >>>>>>>>> Thanks anyway, Federico. >>>>>>>>> >>>>>>>>> >>>>>>>>> 2017-04-18 16:33 GMT+02:00 Summers Pittman : >>>>>>>>> >>>>>>>>>> Frederico, >>>>>>>>>> >>>>>>>>>> Hi, sorry you are having trouble with UPS. If you could help us >>>>>>>>>> out by answering a couple of questions that would be great. >>>>>>>>>> >>>>>>>>>> 1) Which OS is your applicatoin having trouble on and are you >>>>>>>>>> using Cordova or native libraries? >>>>>>>>>> >>>>>>>>>> 2) Is your code publicly available somewhere for us to look at? >>>>>>>>>> >>>>>>>>>> 3) Are you using the example app or is this your own >>>>>>>>>> implementation? >>>>>>>>>> >>>>>>>>>> I know from experience that with Android one of the common >>>>>>>>>> problems is that if the application has been killed by the OS then the Push >>>>>>>>>> libraries have to be reinitialized before you can send metrics to the >>>>>>>>>> server. If you are initializing your push libraries in an Activity class >>>>>>>>>> instead of the Application class this may be something to double check. Of >>>>>>>>>> course if this is iOS or Cordova then everything I just said is nonsense :) >>>>>>>>>> >>>>>>>>>> Summers >>>>>>>>>> >>>>>>>>>> On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara < >>>>>>>>>> fedecentrico at gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Hi, >>>>>>>>>>> my name is Federico Cerminara, 35 years old, engineer and web >>>>>>>>>>> developer in Rome. >>>>>>>>>>> I?m a beginner in cross platform app development and I?ve >>>>>>>>>>> started using aerogear cordova push plugin to enable reception of push >>>>>>>>>>> notification. >>>>>>>>>>> >>>>>>>>>>> I?ve developed my first app. I?m able to receive correctly push >>>>>>>>>>> notification, both sending them directly by aerogear admin panel after >>>>>>>>>>> choosing a variant and and sending them from the application backend >>>>>>>>>>> following a custom logic. If I have my app closed or already open, clicking >>>>>>>>>>> on push notification seems to behave correctly, bringing user to >>>>>>>>>>> application first page. Instead, if I try to close all my applications >>>>>>>>>>> after receiving one or more push notification (image notification frequency >>>>>>>>>>> is quite low) and then I try to click on my waiting push, application >>>>>>>>>>> crashes showing a message that sound quite like this ?The program >>>>>>>>>>> has been interrupted? >>>>>>>>>>> >>>>>>>>>>> Can you tell me a way to solve this problem? >>>>>>>>>>> Thanks anyway, Federico. >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> Aerogear-users mailing list >>>>>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>> >>> -- Puoi trovarmi qui, se vuoi: facebook , flickr , linkedin , twitter , anobii Link consigliati: Piccoli Maestri , Il clima di Cipro -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170428/5924a46e/attachment-0001.html