[Aerogear-users] An app crash scenario after clicking on push notification

Summers Pittman supittma at redhat.com
Wed Apr 19 07:37:49 EDT 2017


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 <supittma at redhat.com>:
>
>>
>>
>> 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 <supittma at redhat.com>:
>>>
>>>> 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
>>>>> <app_name> 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 <http://www.facebook.com/fedecentrico>, flickr
>>> <http://www.flickr.com/photos/fedecentrico>, linkedin
>>> <http://it.linkedin.com/in/fedecentrico>, twitter
>>> <http://twitter.com/fedecentrico>, anobii
>>> <http://www.anobii.com/fedecentrico/books>
>>> Link consigliati: Piccoli Maestri <http://www.piccolimaestri.org>, Il
>>> clima di Cipro <http://www.facebook.com/#%21/IlClimaDiCipro>
>>>
>>> _______________________________________________
>>> 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 <http://www.facebook.com/fedecentrico>, flickr
> <http://www.flickr.com/photos/fedecentrico>, linkedin
> <http://it.linkedin.com/in/fedecentrico>, twitter
> <http://twitter.com/fedecentrico>, anobii
> <http://www.anobii.com/fedecentrico/books>
> Link consigliati: Piccoli Maestri <http://www.piccolimaestri.org>, Il
> clima di Cipro <http://www.facebook.com/#%21/IlClimaDiCipro>
>
> _______________________________________________
> 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 


More information about the Aerogear-users mailing list