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

Unusually Long Sessions #160

Closed
andrewkimjoseph opened this issue Nov 15, 2023 · 1 comment
Closed

Unusually Long Sessions #160

andrewkimjoseph opened this issue Nov 15, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@andrewkimjoseph
Copy link

Current Behavior

Our Flutter app is logging unusually long sessions, as in the following screenshots of a sample user:

Screenshot 2023-11-15 at 10 42 33
  • Session lasted a whole day.

Our Setup

We have this class, EventLogger, that we use to create the instance and initiate the SDK:

class EventLogger extends EventData {
  ...
  Amplitude amplitudeAnalytics =
      Amplitude.getInstance(instanceName: name);

  void initializeAmplitude() {
    amplitudeAnalytics.init(dotenv.env["AMPLITUDE_API_KEY"]!);
  }
 ...
}

Then, we call the initializeAmplitude method in the main method:

void main() async {
 ...

  EventLogger().initializeAmplitude();

 ...
}

The Issue

Three possible reasons:

  • We are doing something incorrectly with our implementation
  • The platform SDKs have issues
  • We have other services in our platform that are affecting the SDK

Environment

  • SDK Version: ^3.13.0
  • Flutter Version: 3.13.9
  • Device: Redmi Phone (one example)
  • Device OS and Version: Android 12
@andrewkimjoseph andrewkimjoseph added the bug Something isn't working label Nov 15, 2023
@Mercy811
Copy link
Contributor

Hi @andrewkimjoseph, the long session issue should be fixed in 3.15.0. Could you upgrade and see if it happens again? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants