0
 Followers
1
 Like

Native apps crash errors logging

Mobile
Implemented
on 19 Jan 2018

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

Created on 11 Jan 2017
Comments (2)

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

views
405
Followers
0