Skip to content

Unable to track app close event. #168

@awazgyawali

Description

@awazgyawali

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions