-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Labels
Description
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:
- Create a new SwiftUI App with App Delegate.
- Add the
analytics-swiftpackage. - Initialise
Analyticsin thedidFinishLaunchingWithOptionsdelegate method. - 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