내가 만든 블로그~

Postman 으로 FCM 알림 테스트하기

POST https://fcm.googleapis.com/fcm/send

위 경로로 메세지를 보낸다.

Untitled

헤더 데이터

  • Authorization : key=AAAXXXXXX
  • Content-Type : application/json

Authorizationkey=서버키 형태로 넣는다.

{
    "to":"FCMToken",
    "data" : {
      "title":"제목",
      "body":"내용",
	  "otherKey":"asdf",
    }
}

body 는 정해진 데이터대로 넣는다.