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

Amplitude sessions abnormally long on Android #1055

Open
jetaix opened this issue Mar 13, 2025 · 0 comments
Open

Amplitude sessions abnormally long on Android #1055

jetaix opened this issue Mar 13, 2025 · 0 comments

Comments

@jetaix
Copy link

jetaix commented Mar 13, 2025

We’ve noticed an issue with our session length on Android, which looks significantly high (around 25 minutes) compared to iOS and web, which is around 2 minutes.

Plugins @segment/analytics-react-native-plugin-amplitude-session

On Amplitude we use the default "Session definition"

Is anyone else experiencing this?

Amplitude chart:
Image

User Session exemple:

Image

We’re starting an investigation on our end.

Regarding the code, the issue could be related to the setTimeout (on Android), which may pause when the app is sent to the background and resume when it returns to the foreground and never reseted. This behavior could cause an abnormally long session duration

We use

    "react-native": "0.76.7",
    "@segment/analytics-react-native": "^2.20.3",
    "@segment/analytics-react-native-plugin-amplitude-session": "^0.4.0",
    "@segment/sovran-react-native": "^1.1.3",
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

1 participant