Skip to content
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

[FEAT #114] FCM #133

Merged
merged 8 commits into from
Sep 4, 2024
Merged

[FEAT #114] FCM #133

merged 8 commits into from
Sep 4, 2024

Conversation

jorippppong
Copy link
Contributor

@jorippppong jorippppong commented Aug 27, 2024

๐Ÿ“„ Work Description

  • FCM์„ ํ™œ์šฉํ•ด ํ‘ธ์‹œ ์•Œ๋ฆผ ์ „์†ก์„ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค.

โš™๏ธ ISSUE

๐Ÿ“ท Screenshot

(ํ•ด๋‹น ์ด๋ฏธ์ง€๋Š” FCM token์„ ํ™œ์šฉํ•ด์„œ ํ…Œ์ŠคํŠธ์šฉ์œผ๋กœ ์ „์†กํ–ˆ๋˜ ํ‘ธ์‹œ ์•Œ๋ฆผ์ž…๋‹ˆ๋‹ค. ํ˜„์žฌ ์•ˆ๋“œ๋กœ์ด๋“œ ๊ฐœ๋ฐœ์ž ๋ถ„๊ป˜์„œ topic์„ ํ™œ์šฉํ•œ ํ‘ธ์‹œ ์•Œ๋ฆผ์„ ๊ตฌํ˜„ํ•˜๊ณ  ๊ณ„์‹ญ๋‹ˆ๋‹ค.)
แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-08-28 แ„‹แ…ฉแ„Œแ…ฅแ†ซ 12 04 48

๐Ÿ’ฌ To Reviewers

FCM๊ณผ ๊ด€๋ จ๋œ ํ–‰์œ„๋Š” API๋ฅผ ๋”ฐ๋กœ ๊ตฌ๋ถ„ํ–ˆ์Šต๋‹ˆ๋‹ค. ์™œ๋ƒํ•˜๋ฉด ํ•˜๋‚˜์˜ API์— ๋ฐ์ดํ„ฐ CRUD ํ–‰์œ„์™€ FCM์„ ๊ฐ™์ด ํฌํ•จํ•˜๋ฉด ์˜ˆ์™ธ ์ƒํ™ฉ์— ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์—†๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.

  • ๋กœ๊ทธ์ธ ํ›„ /my/fcmToken API๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ FCM Token์„ ๋“ฑ๋ก&๊ฐฑ์‹  ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.
  • ์ฐœํ•œ ๋ž ๋ฆฌ๋ฅผ ๊ตฌ๋…ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ตฌ๋…ํ•œ ๋ž ๋ฆฌ์— ์ƒˆ๋กœ์šด ์„ฑ์ง€์ˆœ๋ก€๊ฐ€ ์ถ”๊ฐ€๋˜๋ฉด ์ƒˆ๋กœ์šด ์„ฑ์ง€์ˆœ๋ก€๊ฐ€ ์ถ”๊ฐ€๋˜์—ˆ๋‹ค๋Š” ํ‘ธ์‹œ ์•Œ๋ฆผ์ด ์ „์†กํ•ฉ๋‹ˆ๋‹ค.
  • ๋ž ๋ฆฌ ์ฐœํ•˜๊ธฐ ์ทจ์†Œ๋ฅผ ํ•˜๋ฉด ํ•ด๋‹น ๋ž ๋ฆฌ์˜ ๊ตฌ๋…์„ ์ทจ์†Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ์ž์œ ๊ฒŒ์‹œํŒ์˜ ๊ฒŒ์‹œ๊ธ€๊ณผ ์„ฑ์ง€์ˆœ๋ก€ ์ธ์ฆ๊ธ€์— ๋Œ“๊ธ€์„ ์ถ”๊ฐ€ํ•˜๋ฉด, ํ•ด๋‹น ๊ธ€์˜ ์ž‘์„ฑ์ž์™€ ๋Œ“๊ธ€์— ์–ธ๊ธ‰ํ•œ ์‚ฌ๋žŒ์—๊ฒŒ ํ‘ธ์‹œ ์•Œ๋ฆผ์„ ์ „์†กํ•ฉ๋‹ˆ๋‹ค.
  • ์•Œ๋ฆผ ํŽ˜์ด์ง€๊ฐ€ ์ƒˆ๋กœ ์ƒ๊ฒผ์Šต๋‹ˆ๋‹ค.
    • ์•Œ๋ฆผ ์ „์ฒด ์กฐํšŒ, ์•Œ๋ฆผ ์ „์ฒด ์ฝ์Œ ์ฒ˜๋ฆฌ, ํŠน์ • ์•Œ๋ฆผ ์ฝ๊ธฐ, ํŠน์ • ์•Œ๋ฆผ ์‚ญ์ œ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ๋Œ“๊ธ€ ์ถ”๊ฐ€ API์˜ response body์— ์ƒˆ๋กœ ์ƒ์„ฑ๋œ ๋Œ“๊ธ€์˜ Id๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ”— Reference

https://firebase.google.com/docs/cloud-messaging/send-message?hl=ko

https://zuminternet.github.io/FCM-PUSH/

@jorippppong jorippppong self-assigned this Aug 27, 2024
@jorippppong jorippppong added the โœจ feature New feature or request label Aug 27, 2024
@jorippppong jorippppong added this to the Backend ๊ฐœ๋ฐœ milestone Aug 27, 2024
@JungYoonShin JungYoonShin merged commit 6eb93cc into develop Sep 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
โœจ feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] FCM
2 participants