Native apps crash errors logging
2300
Views
4
Comments
Implemented
Mobile

I got a case recently where the native applications on mobile phones where crashing when sending the app to the background.
With the following error : "Mobile app has stopped working"

In service center no logs where created since it was not an error produced by the code.
After a while we discovered an Outsystems class was bottlenecking a class from our cordova plugin which crashed with the error described above.

This was the root cause:

The cordova plugin implements a custom Android application class for handling app lifecycle events
but what we saw from the crash log: so does the outsystems platform.
note: you can have only one Android application class defined for your app and the outsystems one takes precedence in this case
(probably is even instantiated on a different level than the cordova plugin one which is integrated via a Cordova build-time hook)



We had to figure it out ourselves what the error was by using "LogCat stacktrace". Service center doesn't provide us those kind of logs, and it would be nice to have them. Since we can not find the root cause of the error with service center.


Greetings,
Niels

Hi Niels,


This is a great idea! Today the way to do it is to use another plugin to trap native app crashes. You have two in the Forge that have free plans and that you can use for this purpose. Google Analytics Plugin and Fabric Plugin (previously known as Crashalytics)

Changed the status to
Implemented
on 19 Jan 2018

Hi Niels,

We are constantly improving our native mobile offer, and, having said that, we recently released logging capabilities. This means that, among other things, we're detecting  when there's a native crash and registering such crash in Service Center.

You can find more about this feature here.

Do let me know if this suits your need, or if you were thinking about a different approach.

Also, thank you so much for the feedback. Please keep the ideas and feedback coming.


Ricardo Alves

Ricardo,


This includes any native crash the app might have or only cordova plugins errors?


Thanks.

2019-12-01 23-50-25
Pedro Neto
Champion


Ricardo you said this:

We are constantly improving our native mobile offer, and, having said that, we recently released logging capabilities. This means that, among other things, we're detecting  when there's a native crash and registering such crash in Service Center.

As far as I know there is not a way to check the android native crash logs on service center!