fcm push - Willson-2019/Willson-Server GitHub Wiki
FCM PUSH μ’ λ₯
μ§λ¬Έμ ver 1 : μμ€λλ₯Ό μ°Ύμ κ²½μ°
- title = 'λΉμ μ λμμ€ μμ€λλ₯Ό μ°Ύμμ΄μ'
- body = 'μ§κΈ λ°λ‘ λνλ₯Ό μμν΄λ³΄μΈμ :)'
- type = 'fcm_found_willsoner'
μ§λ¬Έμ ver 2 : μμ€λλ₯Ό μ°Ύμ§ λͺ»ν κ²½μ°
- title = 'λΉμ μ λμμ€ μμ€λλ₯Ό μ°Ύμ§ λͺ»νμ΄μ'
- body = 'λ€μ νλ² μ°Ύμλ³ΌκΉμ?'
- type = 'fcm_not_found_willsoner'
μ§λ¬Έμ ver 3 : λν νμ ν μ μ₯νμ§ μμ κ²½μ°
- title = 'OO λ΅λ³μλμ΄ λν μμμ κΈ°λ€λ¦¬κ³ μμ΄μ :)'
- body = 'μ§κΈ λ°λ‘ μ μ₯ν΄μ£ΌμΈμ!'
- type = 'fcm_willsoner_waiting'
μ§λ¬Έμ ver 4 : λν νμ ν λμνμ§ μμ κ²½μ°
- title = 'OO λ΅λ³μλμ΄ λν μμμ κΈ°λ€λ¦¬κ³ μμ΄μ :)'
- body = 'μ§κΈ λ°λ‘ μ μ₯ν΄μ£ΌμΈμ!'
- type = 'fcm_intro_willsoner'
λ΅λ³μ ver 1 : κ³ λ―Όμ΄ λμ°©ν κ²½μ°
- title = 'λΉμ μ΄ λμμ€ κ³ λ―Όμ΄ λμ°©νμ΄μ'
- body = 'μ§κΈ λ°λ‘ λνλ₯Ό μμν΄λ³΄μΈμ :)'
- type = 'fcm_received_concern'
λ΅λ³μ ver 2 : μ§λ¬Έμμ λ§€μΉ νμ
- title: 'λνκ° νμ λμμ΅λλ€'
- body: 'μ§κΈ λ°λ‘ λνλ₯Ό μμν΄λ³΄μΈμ :)'
- type: 'fcm_realtime_match_confirmed'
λ΅λ³μ ver 3 : λν νμ ν μ μ₯νμ§ μμ κ²½μ°
- title = 'OO μ§λ¬Έμλμ΄ λν μμμ κΈ°λ€λ¦¬κ³ μμ΄μ :)'
- body = 'μ§κΈ λ°λ‘ μ μ₯ν΄μ£ΌμΈμ!'
- type = 'fcm_asker_waiting'
λ΅λ³μ ver 4 : λν νμ ν λμνμ§ μμ κ²½μ°
- title = 'OO μ§λ¬Έμλμ΄ λν μμμ κΈ°λ€λ¦¬κ³ μμ΄μ :)'
- body = 'μ§κΈ λ°λ‘ μ μ₯ν΄μ£ΌμΈμ!'
- type = 'fcm_intro_asker'
λν μ’ λ£
- title = 'λνκ° μλ μ’ λ£λμμ΅λλ€'
- body = 'μλ΄λ₯Ό νμΈν΄μ£ΌμΈμ.'
- type = 'fcm_chat_end'
μλ‘μ΄ λ©μμ§ μ μ‘
- title = λλ€μ
- body = λ©μμ§ λ΄μ©
- type = 'fcm_new_message'
μλ΅μμ
{
"token": "fiG51XAeSzKXMr3z4dAXp9:APA91bHxEV187Ih9ygb3YNwUnzVNjnHubTg3RtyCxhWv_kGOksZzfoOB5ShLQ84kIjhces-Bfld_uP8aFzjIELOK55816BkaWJoh3QzMtADm4EaRXaC8_QlevYVyXSDlN-UjLgO5atbd",
"android": {
"ttl": 3600000,
"priority": "high",
"notification": {
},
"data": {
"title": "λνκ° νμ λμμ΅λλ€",
"body": "μ§κΈ λ°λ‘ λνλ₯Ό μμν΄λ³΄μΈμ :)",
"link": "{"action":"post"}",
"type": "fcm_realtime_match_confirmed",
"content": "{"nickname":"test2","age":"20λ μ€λ°","gender":"μ¬","category":"μ·¨μ
","direction":"λΉμ·ν κ²½νμ λ£κ³ μΆμ΄μ","pic":"https://willson-v1.s3.ap-northeast-2.amazonaws.com/willsoner_image/willson_01.jpg"}"
}
}
}
contentμ λ°μ΄ν° μμ κ²½μ° undefined