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

Unable to track app close event. #168

Open
awazgyawali opened this issue Oct 4, 2024 · 0 comments
Open

Unable to track app close event. #168

awazgyawali opened this issue Oct 4, 2024 · 0 comments

Comments

@awazgyawali
Copy link

awazgyawali commented Oct 4, 2024

I have a code block like this.

    AppLifecycleListener(
      onStateChange: (change) {
        print(change);
        if (change == AppLifecycleState.detached) {
          _appAnalytics.trackEvent(
            "app_close"
          );
        }
      },
    );

I get console log of AppLifecycleState.detached but then I never see app_close event on the dashboard.

I understand that since the app was closed it might not have gotten time to push that event to the server. But it doesn't report even after I reopen the application.

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