SWM-99-degree / jariBean

SWM 14th JariBean Project
0 stars 1 forks source link

refact <기성 #150> FCM 메세지 변경 #151

Closed psy-choi closed 1 year ago

psy-choi commented 1 year ago

firebase 메세지 변경

for (String userId : userIds) {
                tokenList.add(tokenRepository.findById(userId)
                        .orElseThrow(() -> new CustomApiException("userId에 해당하는 Token set이 존재하지 않습니다.")).getFirebaseToken());
            }
            Notification notification = Notification.builder()
                    .setTitle("자리:Bean 예약 알림")
                    .setBody("오늘의 예약을 잊지 마세요!")
                    .build();
            AndroidNotification androidNotification = AndroidNotification.builder()
                    .setTitle("자리:Bean 예약 알림")
                    .setBody("오늘의 예약을 잊지 마세요!")
                    .setChannelId("jari_bean_alert")
                    .setPriority(Priority.HIGH)
                    .build();
            AndroidConfig androidConfig = AndroidConfig.builder()
                    .setNotification(androidNotification)
                    .build();

예약을 알 수 있는 화면으로 갈 수 있는 메세지로 설정함

psy-choi commented 1 year ago

152 에러에 대한 내용입니다.