Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

Counted a lot of crash event after new mobile app launched

Avatar

Level 2

Hi all,

We counted a lot of crash event after new mobile app launched, is it related mobile app upgrade?

 

Any idea to find out the root cause on it? Thanks so much!


Regards,
L

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hey @Lee_Lemen 

 

Are you using the latest SDK ?

 

Crashes are determined as a part of the LifeCycle metrics.

 

When lifecycle metrics are implemented, a call is made to 'Config.collectLifecycleData' in the 'OnResume' method of each activity. In the 'onPause' method, a call is made to 'Config.pauseCollectingLifeCycleData'.

 

In the 'pauseCollectingLifeCycleData', a flag is set to indicate a graceful exit. When the app is launched again or resumed, 'collectLifecycleData' checks this flag. If the app did not exit successfully as determined by the flag status, an 'a.CrashEvent' context data is sent with the next call and a crash event is reported.

 

To ensure accurate crash reporting, you must call 'pauseCollectingLifeCycleData' in the 'onPause' method of each activity. Hope this helps.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 4

Hey @Lee_Lemen 

 

Are you using the latest SDK ?

 

Crashes are determined as a part of the LifeCycle metrics.

 

When lifecycle metrics are implemented, a call is made to 'Config.collectLifecycleData' in the 'OnResume' method of each activity. In the 'onPause' method, a call is made to 'Config.pauseCollectingLifeCycleData'.

 

In the 'pauseCollectingLifeCycleData', a flag is set to indicate a graceful exit. When the app is launched again or resumed, 'collectLifecycleData' checks this flag. If the app did not exit successfully as determined by the flag status, an 'a.CrashEvent' context data is sent with the next call and a crash event is reported.

 

To ensure accurate crash reporting, you must call 'pauseCollectingLifeCycleData' in the 'onPause' method of each activity. Hope this helps.

Avatar

Level 2

Hi @RaawiMahendru,

Thank you for your reply.

We're using Object-c version (ACP 2.X). The a.CrashEvent should be collect automatically and no need to manual implement  lifecycle data collect as my understanding. In this case, the false crash report handling is covering unexerted situation? Am I correct? 

Lifecycle extension in iOS - Adobe Experience Platform Mobile SDKs (gitbook.io)

Thank you.

Regards,
Lemen