Skip to content

Commit

Permalink
[Chore] sopt-makers#354 - 푸시 알림 동의 여부 User Property key 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
lsj8706 committed Jan 21, 2024
1 parent 8a34513 commit c757350
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 @@ -29,7 +29,7 @@ public extension Amplitude {
AmplitudeInstance.shared.track(eventType: eventType, eventProperties: eventProperties, options: nil)
}

func trackWithUserType(event: AmplitudeEventType) {
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()]
Expand All @@ -39,7 +39,7 @@ public extension Amplitude {

func addPushNotificationAuthorizationIdentity(isAuthorized: Bool) {
let identify = Identify()
let key: AmplitudeUserPropertyKey = .notificationAuthorized
let key: AmplitudeUserPropertyKey = .statusOfPushNotification
identify.set(property: key.rawValue, value: isAuthorized)
identify.unset(property: "testProperty")

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 notificationAuthorized = "notification_authorized"
case statusOfPushNotification = "status_of_push_notification"
}

0 comments on commit c757350

Please sign in to comment.