Skip to content

Commit 594813f

Browse files
authored
feat: add application foregrounded events to iOS and macOS (#173)
1 parent 9cf108a commit 594813f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
9898
return
9999
}
100100

101+
analytics?.track(name: "Application Foregrounded")
102+
101103
// Lets check if we skipped application:didFinishLaunchingWithOptions,
102104
// if so, lets call it.
103105
if didFinishLaunching == false {

Sources/Segment/Plugins/Platforms/iOS/iOSLifecycleEvents.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ class iOSLifecycleEvents: PlatformPlugin, iOSLifecycle {
9494
return
9595
}
9696

97+
analytics?.track(name: "Application Foregrounded")
98+
9799
// Lets check if we skipped application:didFinishLaunchingWithOptions,
98100
// if so, lets call it.
99101
if didFinishLaunching == false {

0 commit comments

Comments
 (0)