Android not creating new transaction when one is pending

book

Article ID: 141020

calendar_today

Updated On:

Products

CA App Experience Analytics

Issue/Introduction

When implementing a transaction tracking on Android and iOS, noticed distinct behaviors on both platforms.
In iOS, whenever we try to start a new transaction, the previous one is pending and a new one is created. On Android, if there is a transaction of the same type open, the new transaction is not created. Both platforms should exhibit the same behavior. Below is an example that demonstrates this situation:

IOS:


ANDROID:



Environment

SaaS APP EXPERIENCE ANALYTICS ENGINE

Resolution

In AXA SDK the expected transaction behavior is parent-child transactions. When trying to start a transaction with the same name which is an inactive state, then it will be ignored and we stop parent transaction. As a result, all the child transactions will be in an incomplete state.

More explanation below.


Step 1: Start Transaction A ( A )
Step 2: Start Transaction B ( A -> B )
Step 3: Start Transaction C ( A -> B -> C)
Step 4: Start Transaction B ( A -> B -> C)

Here in step 4 “Start transaction B” will be ignored as B is already an inactive state.

Both Android SDK and iOS SDK should show this behavior. IOS SDK is behaving as expected, then SE fixed that in Android SDK. 

To have the fixed SDK, contact Broadcom support and refer to the defect "DE439290" in order to have access to the fix.

Attachments