Skip to content

Commit d5143fc

Browse files
authored
Updated lifecycle events for AmplitudeSession (#31)
1 parent 563b3f9 commit d5143fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Examples/destination_plugins/AmplitudeSession.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ class AmplitudeSession: EventPlugin, iOSLifecycle {
9191
return returnEvent
9292
}
9393

94-
func applicationWillBecomeActive() {
94+
func applicationWillEnterForeground(application: UIApplication) {
9595
startTimer()
96-
print(sessionID ?? "")
96+
analytics?.log(message: "Amplitude Session ID: \(sessionID ?? -1)")
9797
}
98-
99-
func applicationWillResignActive() {
98+
99+
func applicationWillResignActive(application: UIApplication) {
100100
stopTimer()
101101
}
102102
}

0 commit comments

Comments
 (0)