Skip to content

Commit

Permalink
[Fix] #223 - 알림 토글 로깅 이벤트 값 수정
Browse files Browse the repository at this point in the history
- 설정 창으로 이동할 때가 아니라 알림 설정 변경 후 값에 따라 알맞은 이벤트 송신
  • Loading branch information
yungu0010 committed Jan 18, 2024
1 parent 6705d7f commit 8bdf87f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ extension MyInfoAccountStackView {
if let isNotificationAllowed = self?.isNotificationAllowed {
self?.switchClosure?(isNotificationAllowed)
}

if KeychainUtil.getBool(DefaultKeys.isNotificationAccepted) {
AmplitudeAnalyticsService.shared.send(event: AnalyticsEvent.AccountInfo.completePushOn)
} else {
AmplitudeAnalyticsService.shared.send(event: AnalyticsEvent.AccountInfo.completePushOff)
}
}
}
}
Expand Down

0 comments on commit 8bdf87f

Please sign in to comment.