Skip to content

Lifecycle method application_opened not firing consistently #1072

@mattlennon3

Description

@mattlennon3

Our analytics team have flagged that we aren't always receiving an application_opened event for app sessions. Even though other events are received on the same day. This can be as high as 10% of users who's session does not trigger the event.

We believe this could be to do with the app being backgrounded for an extended period of time.

I am raising this issue to ask for advice on how to replicate, and of course if you have any ideas what the problem might be.

Is it advisable to try to fire an event ourselves on app opening/closing? We feel like it's possible, but would be a last resort.

  • analytics-react-native version:
  • Integrations versions (if used):
    "@segment/analytics-react-native": "2.18.0",
    "@segment/analytics-react-native-plugin-advertising-id": "1.3.1",
    "@segment/analytics-react-native-plugin-appsflyer": "0.7.0",
    "@segment/analytics-react-native-plugin-firebase": "0.4.1",
    "@segment/analytics-react-native-plugin-idfa": "0.7.2",
    "@segment/sovran-react-native": "1.1.0",
  • React Native version:
    "react-native": "0.74.6"
  • iOS or Android or both?
    At least iOS, I think Android also.

Steps to reproduce

Unfortunately nothing concrete in terms of replication steps.

Expected behavior

This lifecycle method is fired every time the app is opened.

Actual behavior

It seems like it is not always fired, as other events are received, but not this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions