Skip to content

SwiftUI App not tracking Application Opened event #122

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

Closed
Tronicnotes opened this issue Mar 1, 2022 · 2 comments
Closed

SwiftUI App not tracking Application Opened event #122

Tronicnotes opened this issue Mar 1, 2022 · 2 comments
Assignees
Labels

Comments

@Tronicnotes
Copy link

Tronicnotes commented Mar 1, 2022

Describe the bug
When integrating the analytics library into our SwiftUI app, the "Application Opened" event is not being triggered. It appears the UIApplication.didFinishLaunchingNotification notification is not being received and triggering the iOSLifecycle protocol method didFinishLaunchingWithOptions to track the event.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new SwiftUI App with App Delegate.
  2. Add the analytics-swift package.
  3. Initialise Analytics in the didFinishLaunchingWithOptions delegate method.
  4. Launch app and observe the "Application Opened" event is not tracked.

Note: The "Application Foregrounded" and "Application Backgrounded" events are triggered as expected.

Expected behavior
On Application launch, the "Application Opened" event should be triggered.

Screenshots
N/A

Platform (please complete the following information):

  • Library Version in use: 1.1.2
  • Platform being tested: iOS (tested against iOS 14.5 and iOS 15.4 simulators, and iPhone 12 Pro device - iOS 15.3.1)
  • Integrations in use: Firebase

Additional context
N/A

@migs647
Copy link
Contributor

migs647 commented Mar 14, 2022

This issue will also affect the "Application Updated" and "Application Installed" events.

@migs647
Copy link
Contributor

migs647 commented Mar 14, 2022

Fixed: #126

@migs647 migs647 closed this as completed Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants