fix: 푸시메시지 발송 방식 변경
- iOS일 때는 notification, android 일 때는 data-only 방식으로 발송하던 현재 방식에서 모두 notification을 사용하는 방식으로 수정
This commit is contained in:
parent
2fd7419bdd
commit
b915ace6ff
|
@ -56,19 +56,13 @@ class FcmService(private val pushTokenService: PushTokenService) {
|
|||
.build()
|
||||
)
|
||||
|
||||
if (container == "ios") {
|
||||
multicastMessage
|
||||
.setNotification(
|
||||
Notification.builder()
|
||||
.setTitle(title)
|
||||
.setBody(message)
|
||||
.build()
|
||||
)
|
||||
} else {
|
||||
multicastMessage
|
||||
.putData("title", title)
|
||||
.putData("message", message)
|
||||
}
|
||||
multicastMessage
|
||||
.setNotification(
|
||||
Notification.builder()
|
||||
.setTitle(title)
|
||||
.setBody(message)
|
||||
.build()
|
||||
)
|
||||
|
||||
if (roomId != null) {
|
||||
multicastMessage.putData("room_id", roomId.toString())
|
||||
|
|
Loading…
Reference in New Issue