-
Notifications
You must be signed in to change notification settings - Fork 1
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
#524 접수된 신고 당사자에 FCM 발송 #525
base: dev
Are you sure you want to change the base?
Conversation
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.
LGTM! 빠른 작업 감사합니다~~~
await sendMessageByTokens( | ||
await getTokensOfUsers([req.userId]), | ||
"신고가 접수되었습니다.", | ||
"신고 내용을 확인해주세요.", |
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.
미정산 / 미탑승 / 기타 정도의 신고 사유는 알림 메세지에서 바로 확인할 수 있어도 좋을 것 같습니다!
@@ -201,7 +200,7 @@ const sendMessageByTokens = async (tokens, type, title, body, icon, link) => { | |||
}, | |||
apns: { payload: { aps: { alert: { title, body } } } }, | |||
android: { | |||
ttl: 0, | |||
ttl: 3600, |
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.
😭
Summary
It closes #524
접수된 신고의 당사자에게 FCM을 발송합니다.