[Android] Session Duration returns 0 and has no event (Ghost Session)
Hi Countly team,
I am facing an issue that some sessions are returns no duration value and no event. My current version is 22.06.0
After investigation, I think the root cause is beginSessionInternal function is called 2 times in the row when opening app in the first time.
1. When setting up the Consents -> onConsentChanged() func is called -> beginSessionInternal() is called.
2. When starting an activity -> countly.onStart(activity) is called -> beginSessionInternal() is called.
After that, the app works fine without any ghost sessions.
Can you help me how to resolve this problem?
Thank you in advance.