Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

82
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!