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

[Bug]: SessionListener.onSessionEnded sending duration of 0 seconds #2246

Open
1 task done
panzhiev opened this issue Jan 23, 2025 · 1 comment
Open
1 task done

Comments

@panzhiev
Copy link

panzhiev commented Jan 23, 2025

What happened?

Starting from 5.1.20 I've got this Error message in logs:
SessionListener.onSessionEnded sending duration of 0 seconds

Steps to reproduce?

1. Install 5.1.20
2. Initialize One Signal 
3. Login user to OneSignal using `OneSignal.login(id)`
4. Check log

What did you expect to happen?

I expected there is no any error messages in logs after OneSignal update

OneSignal Android SDK version

5.1.20 - 5.1.26

Android version

13

Specific Android models

Relevant log output

14:45:24.008 OneSigna...tializer  --- D  Initializing OneSignal
14:45:24.191 StandaloneCoroutine --- I  Login user to OneSignal: 75
14:45:24.421 OneSigna --- E  SessionListener.onSessionEnded sending duration of 0 seconds
14:45:24.552 FirebaseApp  --- I  Device unlocked: initializing all Firebase APIs for app ONESIGNAL_SDK_FCM_APP_NAME
14:45:24.712 WM-WorkerWrapper  --- I  Worker result SUCCESS for Work [ id=2942f2e9-2128-4002-bbd4-1a96468b19fb, tags={ com.onesignal.notifications.internal.restoration.impl.NotificationRestoreWorkManager$NotificationRestoreWorker } ]

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nan-li
Copy link
Contributor

nan-li commented Jan 29, 2025

Hi @panzhiev thanks for reaching out. Unless you are seeing any inconsistencies in the session duration for user 75, this error can be safely ignored.

When you login to user 75, the SDK ends the session for the previous user (of which there is no user), and it has had zero session time. Are you seeing any other errors or issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants