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

fix: Improve application opened event reliability #165

Merged
merged 1 commit into from
May 15, 2024

Conversation

crleona
Copy link
Collaborator

@crleona crleona commented May 14, 2024

Summary

Background tasks can launch an app without it ever being foregrounded, meaning our application opened event is not accurately being recorded. This mirrors changes in Amplitude-iOS that use application state to detect whether an app launch was from the background vs tracking didEnterForeground and didFinishLaunching notifications to infer background state.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: No

@crleona crleona requested a review from a team May 14, 2024 19:44
@yuhao900914 yuhao900914 requested a review from a team May 14, 2024 20:07
Copy link
Collaborator

@justin-fiedler justin-fiedler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @crleona

@crleona crleona merged commit d3b9de7 into main May 15, 2024
3 checks passed
@crleona crleona deleted the AMP-99926-fix-app-opened-from-background branch May 15, 2024 20:29
github-actions bot pushed a commit that referenced this pull request May 15, 2024
## [1.5.1](v1.5.0...v1.5.1) (2024-05-15)

### Bug Fixes

* Improve application opened event reliability ([#165](#165)) ([d3b9de7](d3b9de7))
Copy link

🎉 This PR is included in version 1.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants