푸시 - 개별발송 로직 수정
This commit is contained in:
parent
40bdd5ba1c
commit
2410d77cb7
|
@ -65,7 +65,7 @@ class FcmSendListener(
|
||||||
tokens = tokens,
|
tokens = tokens,
|
||||||
title = fcmEvent.title,
|
title = fcmEvent.title,
|
||||||
message = fcmEvent.message,
|
message = fcmEvent.message,
|
||||||
container = fcmEvent.container
|
container = "ios"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,14 +76,34 @@ class FcmSendListener(
|
||||||
tokens = tokens,
|
tokens = tokens,
|
||||||
title = fcmEvent.title,
|
title = fcmEvent.title,
|
||||||
message = fcmEvent.message,
|
message = fcmEvent.message,
|
||||||
container = fcmEvent.container
|
container = "aos"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FcmEventType.CREATE_LIVE, FcmEventType.START_LIVE -> {
|
FcmEventType.CREATE_LIVE -> {
|
||||||
|
if (fcmEvent.container.isNotBlank()) {
|
||||||
|
val pushTokens = memberRepository.getCreateLiveRoomNotificationRecipientPushTokens(
|
||||||
|
creatorId = fcmEvent.creatorId!!,
|
||||||
|
isAuth = fcmEvent.isAuth,
|
||||||
|
container = fcmEvent.container
|
||||||
|
)
|
||||||
|
|
||||||
|
for (tokens in pushTokens) {
|
||||||
|
pushService.send(
|
||||||
|
tokens = tokens,
|
||||||
|
title = fcmEvent.title,
|
||||||
|
message = fcmEvent.message,
|
||||||
|
container = fcmEvent.container,
|
||||||
|
roomId = fcmEvent.roomId
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
FcmEventType.START_LIVE -> {
|
||||||
if (fcmEvent.container.isNotBlank()) {
|
if (fcmEvent.container.isNotBlank()) {
|
||||||
val pushTokens = memberRepository.getCreateLiveRoomNotificationRecipientPushTokens(
|
val pushTokens = memberRepository.getCreateLiveRoomNotificationRecipientPushTokens(
|
||||||
creatorId = fcmEvent.creatorId!!,
|
creatorId = fcmEvent.creatorId!!,
|
||||||
|
|
Loading…
Reference in New Issue