Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

90
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda