Countly / countly-sdk-unity

Countly Product Analytics Unity SDK
https://count.ly/mobile-analytics
MIT License
43 stars 30 forks source link

[Sdk 337] Disable automatic session tracking #101

Closed ZahidZafar closed 3 years ago

ZahidZafar commented 3 years ago

When validating correctness of the session duration value, no internal fields should be used.

That means no "configuration.SessionDuration" and no "Countly.Instance.Session._lastSessionRequestTime"

when we extend session, we send session duration, provide or default one from configuration. "Countly.Instance.Session._lastSessionRequestTime" only keep the value when session started not duration. I calculate duration from current time.

ArtursKadikis commented 3 years ago

Elapsed duration in this case should be measure from outside of the SDK. That means without using any SDK fields

ZahidZafar commented 3 years ago

ok.