Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Start Session/ End Session events with 0 duration #204

Closed
kiko1312 opened this issue Jul 9, 2024 · 1 comment
Closed

Multiple Start Session/ End Session events with 0 duration #204

kiko1312 opened this issue Jul 9, 2024 · 1 comment
Labels
question Further information is requested

Comments

@kiko1312
Copy link

kiko1312 commented Jul 9, 2024

Summary

Hello.

We noticed a lot of Start/End Session events with 0 or 1 second duration. Do you have any idea why is this happening? It seems like it's happening when user is not actually using his device and app, but it's initialized through notification receiving. This is a quite big issue for us. The data is wrong because user is marked as active even though he never opened the app. I think no one would expect that. Also this is generating a lot of events which are useless.

image

@kiko1312 kiko1312 added the question Further information is requested label Jul 9, 2024
@izaaz
Copy link
Collaborator

izaaz commented Jul 11, 2024

@kiko1312 - do you initialize the SDK within the notification handler? The SDK itself doesn't know if it was initialized at app launch or from a notification. When initializing within a notification handler, you can turn off all default tracking so session events aren't fired.

@izaaz izaaz closed this as completed Jul 11, 2024
@izaaz izaaz reopened this Jul 11, 2024
@izaaz izaaz closed this as completed Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants