Mobile spec - Application Opened from background
I have enabled "Application Lifecycle Tracking" to track events like "Application Opened". When user opens the app for the first time or opens after closing it, the event is fired. But it is not fired when user puts the app in background and subsequently brings back to active to use it. Is there anything I'm missing here? I have the same issue in both Android and iOS.
Thanks for writing in here and great question!
I think there are a few edge cases we still need to work out around this and we are currently working this into our lifecycle phases.
We will likely trigger the Application Opened event in applicationWillEnterForeground or applicationDidBecomeActive. We initially didn't consider this edge case as we hadn't thought of the application coming back from being backgrounded as an Application Opened event.
For instance, if your app has the Uber button, a user clicks on it, your app is backgrounded, orders the Uber, and Uber takes you back to your app, that isn't necessarily a new Application Opened event. We initially believed this is part of the same session/user interaction flow.
That being said, Segment isn't intended to be opinionated here, so we are definitely adding this functionality soon.
Let me know if you have any feedback or questions here!