c++에서 fcm 서버로 푸쉬메시지를 보내고 싶어서 찾던 중 오픈소스를 발견하였습니다
오픈소스의 내용은 함수 하나가 정의되어 있었습니다.
해당 함수를 호출하여 fcm서버로 메시지를 보내는것 같습니다.
bool send_a_push_notification(const string &gcm_key, const string *node_id, const string &payload, int type)
위의 함수에서 gcm_key는 api key인것 같고..payload는 보여줄 메시지인것 같고
나머지를 모르겠습니다...
혹시 몰라서 오픈소스도 같이 올립니다.
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include