0
푸시 알림 용 Google FCM Api를 호출합니다. 이 JS 파일에 내 코드입니다 :MobileFirstAdapter JS에서 Google FCM을 호출하는 동안 JSON_PARSER_ERROR 가져 오기
function sendNotificationToUser() {
var request={
path :'/fcm/send',
method: 'POST',
returnedContentType : 'text/plain',
headers: {
'Content-Type': ' application/json',
'Authorization': SERVER_KEY
},
parameters : {
'to': USER_AUTH_KEY,
'notification':JSON.stringify({
'title': 'Welcome',
'body':'Hi there'
})
};
var response = WL.Server.invokeHttp(request);
return response;
그러나 BadRequest, JSON_PARSING_ERROR 말하는 오류가 점점 : 나는 MFP 7.1 사용하고 0
위치에 예기치 않은 문자 (t)를하고 https://fcm.googleapis.com/fcm/send
에 전화를 걸기나를 안내 해주십시오.
MFP가 통합 된 API의 푸시 알림을 보내려면 당신에게 제공 할 때 왜 이러는를 참조하십시오? –
일부 다른 서버에서 호출되는 푸시 알림을 백엔드 서비스에서 보내야합니다. – rumit
그러면 실제로 어떤 서버가 FCM-MFP 서버 또는 백엔드와 통신합니까? –