From 23dc252a22661317293df6d6bd451ae10383121e Mon Sep 17 00:00:00 2001 From: Lee SeJin Date: Tue, 23 Jan 2024 00:49:20 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20#354=20-=20=EC=9D=B4=EB=B2=A4=ED=8A=B8?= =?UTF-8?q?=20=EB=B3=80=EC=88=98=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Projects/Core/Sources/Amplitude/AmplitudeInstance.swift | 4 ++-- .../Core/Sources/Amplitude/AmplitudeUserPropertyKey.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift b/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift index 4ab9402e..2cb77eae 100644 --- a/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift +++ b/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift @@ -25,14 +25,14 @@ public extension Amplitude { func trackWithUserType(event: AmplitudeEventType, otherProperties: [String: Any]? = nil) { let eventType: String = event.rawValue let userType = UserDefaultKeyList.Auth.getUserType() - let eventProperties: [String: Any] = ["view_type": userType.rawValue.lowercased()] + let eventProperties: [String: Any] = [AmplitudeEventPropertyKey.viewType.rawValue: userType.rawValue.lowercased()] AmplitudeInstance.shared.track(eventType: eventType, eventProperties: eventProperties, options: nil) } func addPushNotificationAuthorizationIdentity(isAuthorized: Bool) { let identify = Identify() - let key: AmplitudeUserPropertyKey = .statusOfPushNotification + let key: AmplitudeUserPropertyKey = .stateOfPushNotification identify.set(property: key.rawValue, value: isAuthorized) AmplitudeInstance.shared.identify(identify: identify) diff --git a/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeUserPropertyKey.swift b/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeUserPropertyKey.swift index a439dbbb..dc8edb3f 100644 --- a/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeUserPropertyKey.swift +++ b/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeUserPropertyKey.swift @@ -9,5 +9,5 @@ import Foundation public enum AmplitudeUserPropertyKey: String { - case statusOfPushNotification = "state_of_push_notification" + case stateOfPushNotification = "state_of_push_notification" }