iOS/swift

29. [iOS/Swift] Postman으로 FCM 전송하기

drizzle0925 2022. 1. 16. 18:10
728x90

POST 선택 > "https://fcm.googleapis.com/fcm/send" 입력 > KEY 값을 아래와 같이 입력합니다.

 

Authorization의 키값은 Firebase에서

설정 > 클라우드 메시징 > 서버 키 값을 넣어줍니다.

 

 

to : ios-token value

title : fcm 메시지 타이틀

body: fcm 메시지 본문

{
  "to":"토큰값",
  "priority" : "high",
  "notification" : {
    "title" : "postman",
    "body" : "hello world!",
    "sound" : "default"
  }
}

 

메시지 타이틀과 내용을 입력하고나서 [Send] 버튼을 눌러줍니다.

728x90