How can I include contents-available when sending GCM messages via pinpoint?

0

I want to send push notification to my iOS application by FCM service.

I created a pinpoint project, and when I send as below in lambda, application receive messages well.

let params = {
    ApplicationId: applicationID /* required */,
    SendUsersMessageRequest: {
      /* required */
      MessageConfiguration: {
        /* required */
        GCMMessage: {
          "RawContent": `{\"notification\": {\"title\": \"${title}\",\"body\":\"${message}\", \"sound\":\"default\"}, \"content_available\": \"true\"}`
        },
      },
      Users: users,
    },
  };

  try {
    return await pinpoint.sendUsersMessages(params).promise();
  } catch (err) {
    console.log('Error - ', err);
  }

And I want to contain content_available value for iOS background handler, but when application received message this value is deleted like below.

 LOG  A new FCM message arrived! {"messageId":"1656044924598337","data":{"pinpoint.campaign.campaign_id":"_DIRECT"},"notification":{"body":"TEST body","sound":"default","title":"TEST title"},"from":"560179008583"}

How can i contain contents-available value in GCMMessage?

Please share the guided or advice.

Thanks

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠