Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

Mobile SDK Lifecycle - SessionInfo

Avatar

Level 4

In Mobile SDK5, to implement lifecycle metrics, I am aware that we add the 'lifecycle start' and 'lifecycle pause' in onResume and onPause blocks respectively in native code. We get calls hence which can be seen in Reports under Custom Links as - AMACTION:Lifecycle.and SessionInfo. 

 

Was wondering how is SessionInfo call triggered? Since i dont see it being called explicitly in code. Or does adding lifecycle code to onResume and onPause by defaults enables this as well. 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion

Dear @V_Sirish_Kaushik1 ,

Yes, your understanding is correct. You need to initiate the LifeCycle (start) during the App Initiation. Then, you can pause the LifeCycle (Pause) during the app background and resume the LifeCycle (Start with context resume) during the app foreground. 

When you implement the above, LifeCylce metrics are captured/calculated in Adobe Analytics by default. Nothing more to implement other than the case when you need additional context variables to add during the lifecycle events.

Thank You, Pratheep Arun Raj B (Arun) | NextRow DigitalTerryn Winter Analytics

View solution in original post

2 Replies

Avatar

Community Advisor and Adobe Champion

The Lifecycle metrics contains all of the Session Info functionality, things like Launches, First Launches, Crashes, Upgrades, Days Since First Use, Days Since Last Use, etc. You shouldn't need to explicitly call that.

Avatar

Correct answer by
Community Advisor and Adobe Champion

Dear @V_Sirish_Kaushik1 ,

Yes, your understanding is correct. You need to initiate the LifeCycle (start) during the App Initiation. Then, you can pause the LifeCycle (Pause) during the app background and resume the LifeCycle (Start with context resume) during the app foreground. 

When you implement the above, LifeCylce metrics are captured/calculated in Adobe Analytics by default. Nothing more to implement other than the case when you need additional context variables to add during the lifecycle events.

Thank You, Pratheep Arun Raj B (Arun) | NextRow DigitalTerryn Winter Analytics