Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

83
Visualizações
How to send multiple unique push notifications with AWS Pinpoint in one call?

I have figured out how to send one basic message to a list of users with sendUsersMessages. However, I can't figure out how to customize the message for each user with substitutions. Also, should I use sendMessages or sendUsersMessages if I am sending unique messages for each user?

The documentation is here, but is hard to understand. All the examples found online seem to just send one push notification.

How can I convert the following to sending different users customized push notifications?

 const gcmRawContent = JSON.stringify({
    data: {
      title,
      message: pushText,
      experienceId,
      channelId,
      body,
    },
  });

  const messageConfiguration = {
    MessageConfiguration: {
      GCMMessage: {
        RawContent: gcmRawContent,
      },
    },
  };

  const sendMessagesParams = {
    ApplicationId,
    SendUsersMessageRequest: {
      Users: { 'userId1': {}, 'userId2': {} },
      ...messageConfiguration,
    },
  };
  const pinpoint = new AWS.Pinpoint();
  await pinpoint.sendUsersMessages(batchSendMessagesParams).promise();
about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda