Conversation
β¦Q_026 # Conflicts: # build.gradle
β¦Q_026 # Conflicts: # src/main/resources/application.yml
# Conflicts: # src/main/resources/application.yml
|
/gemini |
|
It looks like you tried to invoke a command. To use Gemini Code Assist commands, please use Here is a list of available commands: Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with π and π on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. |
π μ΄μ λ²νΈ
β μμ μ¬ν
1οΈβ£ FCM ν ν° Mapping
κ°μμ FCM λλ―Έ ν ν°μ μ΄μ©νμ¬
memberIdμtokenμ λ§€ννλ μμ μ§ν.μμ μ°Έμ‘°μ ν΄λΉνλ μλν¬μΈνΈλ
POSTλ°©μμ ~/api/fcm/register/tokenμΌλ‘, ν΄λΉ μλν¬μΈνΈλ‘ FEμμ ν ν°κ³Ό λ‘κ·ΈμΈ ν μ μ μ memberIdλ₯Ό 보λ΄μ£Όκ²λλ©΄ μ μμ μΌλ‘ ν ν°μ΄ λ±λ‘μ΄ λ©λλ€.[λ±λ‘ μμ²]

[Redis λ±λ‘ μν©]

2οΈβ£ FCM μλ¦Ό μ μ‘/μμ
λ§€νλ FCM ν ν°μ Redisμ μ μ₯νμμ΅λλ€.
βμ Redisμ μ μ₯νμλκ°?
β ν ν°μ μ μ₯ λ° κ°μ Έμ€λ λ°©μμ μμ΄μ RDBλ₯Ό μ¬μ©νκΈ°μλ λ©λͺ¨λ¦¬ μμ λΉμ©μ΄ ν΄ κ²μΌλ‘ μμλμ΄ Redisλ₯Ό μ΄μ©ν΄ μ μ₯νκ³ κ°μ Έμ€λ λ°©μμ μ±ννμμ΅λλ€.
β λν μλ¦Όμ κ²½μ° λμΌ ν ν°μ λν΄ λ°λ³΅μ μΈ μμ²μ΄ μ¦κΈ° λλ¬Έμ, μΊμλ₯Ό μ΄μ©ν λ°μ΄ν° μ‘°νκ° νμν©λλ€. μ΄μ μ μ ν λ°μ΄ν°λ² μ΄μ€ μ μ₯ λ°©μμΈ Redisλ₯Ό μ¬μ©νμ΅λλ€.
λ§€νλ ν ν°κ³Ό FCM 곡μ Documentλ₯Ό μ°Έκ³ νμ¬ μ ννλ Json λ°μ΄ν° νμμ λ°λΌ μλ¦Όμ μ μ‘νμμ΅λλ€.
λν νμ¬ λλ―Έ FCM ν ν° λ°μ΄ν°λ₯Ό PostManμΌλ‘ μ μ‘νμ¬ μλ¦Όμ λ°μ‘νκ² λλ©΄ Firebaseμμ μ¬λ°λ₯Έ Token νμμ΄ μλλΌλ μ€λ₯λ₯Ό λ°νν©λλ€. ν΄λΉ λΆλΆμ 1οΈβ£μ ν΄λΉνλ μ°Έμ‘°μ ν΄λΉνλ μ€λ₯λ‘, ν΄λΉ λ΄μ©μ μ°Έκ³ νμλ©΄ λ©λλ€.
[FCM μλ²μ μλ¦Ό μ μ‘ μμ²]

[BE μλ² μλ¦Ό μ μ‘ μμ² λ‘κ·Έ]
[μ¬λ°λ₯Έ νμμ Token νμ]
β¨ κΈ°ν
@tkv00 λκ»μλ νμ¬ μλ¦Ό μ μ‘ μ€ν¨μ λν PRμ΄ FEμμμ λΉλ ν ν ν° μ μ‘μ λν νλ‘μΈμ€κ° μΆν μ§νλ μμ μμ μΈμ§ν΄μ£Όμλ©΄ λ κ² κ°μ΅λλ€.
λν κ° μλ¦Ό μ΄λ²€νΈ λ°μ(νμ΄λΌμ΄νΈ μμ± μλ£, λνΉ κ°±μ λ±)μ λν κΈ°λ₯ ꡬνμ λ€μ μ΄μμμ λ€λ£¨κ² μ΅λλ€.