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()
|
.build()
|
||||||
)
|
)
|
||||||
|
|
||||||
if (container == "ios") {
|
multicastMessage
|
||||||
multicastMessage
|
.setNotification(
|
||||||
.setNotification(
|
Notification.builder()
|
||||||
Notification.builder()
|
.setTitle(title)
|
||||||
.setTitle(title)
|
.setBody(message)
|
||||||
.setBody(message)
|
.build()
|
||||||
.build()
|
)
|
||||||
)
|
|
||||||
} else {
|
|
||||||
multicastMessage
|
|
||||||
.putData("title", title)
|
|
||||||
.putData("message", message)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (roomId != null) {
|
if (roomId != null) {
|
||||||
multicastMessage.putData("room_id", roomId.toString())
|
multicastMessage.putData("room_id", roomId.toString())
|
||||||
|
|
Loading…
Reference in New Issue