Skip to content

Commit 71b653a

Browse files
bsneedBrandon Sneed
andauthored
Fixes issue w/ amplitude sessionId not working (#65)
Co-authored-by: Brandon Sneed <[email protected]>
1 parent bd23547 commit 71b653a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Examples/destination_plugins/AmplitudeSession.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ class AmplitudeSession: EventPlugin, iOSLifecycle {
118118
return returnEvent
119119
}
120120

121-
func applicationWillEnterForeground(application: UIApplication) {
121+
func applicationWillEnterForeground(application: UIApplication?) {
122122
startTimer()
123123
analytics?.log(message: "Amplitude Session ID: \(sessionID ?? -1)")
124124
}
125125

126-
func applicationWillResignActive(application: UIApplication) {
126+
func applicationWillResignActive(application: UIApplication?) {
127127
stopTimer()
128128
}
129129
}

0 commit comments

Comments
 (0)