-
Notifications
You must be signed in to change notification settings - Fork 1
[DPMBE-101] 알림이 필요한 이벤트일때 FCM 메세지를 발송한다 #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Kudos, SonarCloud Quality Gate passed! |
val logger: KLogger = KotlinLogging.logger {} | ||
|
||
@Async | ||
@Transactional(propagation = Propagation.REQUIRES_NEW) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transaction을 handler 에 넣어주셨군용
) | ||
|
||
// notification 저장 | ||
val targetUserIds = users.map { user -> user.id!! }.toSet() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유니크 고를때 그냥 Set 으로 해도 되겠네요ㅋㅋ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 ㅋㅋㅋㅋ
kotlin에 .distinct 가 내부적으로 뮤터블셋을만든후에 List를 반환하네용?
.build() | ||
FirebaseMessaging.getInstance().send(message) | ||
return FirebaseMessaging.getInstance().sendAsync(message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
으음 슬랙이랑 구조가 똑같네요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿입니다요!!!
개요
작업사항
각 이벤트에 FCM을 발송하고, 알립 탭에서 조회하기 위한 notification 테이블에 데이터 적재
이벤트 목록
지각한 친구의 사진 도착
,도착한 친구들의 사진 도착
전송위치 공유 시작!
전송친구들에게 용서를 비는 사진을 보내봐!
,친구들에게 재촉하는 사진을 보내
전송이모지 투척!
전송위치 공유 종료!
전송이모지 100개 달성!
전송이번 PR에서 적재한 알림 데이터는 다음 PR에서 하이라이트와 함께 조회하는 기능 추가하겠습니닷