Skip to content

Commit

Permalink
[Fix] #354 - 이벤트 변수명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lsj8706 committed Jan 22, 2024
1 parent f4d16dd commit 23dc252
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
import Foundation

public enum AmplitudeUserPropertyKey: String {
case statusOfPushNotification = "state_of_push_notification"
case stateOfPushNotification = "state_of_push_notification"
}

0 comments on commit 23dc252

Please sign in to comment.