-
Notifications
You must be signed in to change notification settings - Fork 0
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
[#27] FCM을 이용한 Push 알림 서버 구현 #28
base: develop
Are you sure you want to change the base?
Conversation
@Getter | ||
@AllArgsConstructor |
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.
이 두개는 @Value
하나로 관리할 수 있을것 같습니다
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.
그리고 Value 사용하게되면 필드에 명시한 private 도 생략가능할것 같습니다.
(default 로 private final 데이터가 유지되므로)
@Builder | ||
@Getter | ||
@AllArgsConstructor | ||
public static class Notification { |
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.
이 Notification
은 PushNotificationMessage
가 포함하고 있는게 맞나요??
포함관계라면 PushNotificationMessage
내부에서 필드 추가해줘야할것 같습니다.
Notification notification;
아니라면 Notification 은 다른 클래스로 빼주는게 자연스러울것 같아요
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.
Notification
은 Message
의 필드로 사용되는 클래스입니다!
Message
클래스 내부에 포함되도록 변경하면 될까요?
private static final String FIREBASE_CONFIG_PATH = "firebase/firebase_service_key.json"; // TODO : add firebase project service key file | ||
private static final String API_URL = "https://fcm.googleapis.com/v1/projects/{firebase-project-id}/messages:send"; | ||
private static final String OAUTH_SCOPE = "https://www.googleapis.com/auth/cloud-platform"; |
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.
급한건 아니지만 이런것들은 yml 설정파일에 넣어주는 편이 좋을것 같습니다
PushNotificationMessage.Notification.builder() | ||
.title(title) | ||
.body(body) | ||
.image(null) |
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.
이 null 은 임시방편인가요?? 아님 항상 null 인건가요?
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.
임시방편으로 null 값을 넣어놨습니다!
FCM을 이용한 Push Notification Server를 구축하였습니다.