Guide for Setting Up One-Time Scheduler on Amazon EventBridge Scheduler to Invoke Amazon Pinpoint Push Notification

0

Are there any resources to correctly configure the Amazon EventBridge scheduler to create a one time schedule to trigger a push notification to a device using Amazon Pinpoint?

Use Case: A user on a mobile device selects snooze, and a push notification is sent X minutes later to the device reminding them to perform a specific action.

I went through the standard process in the console and made these decisions, however, no push notification is sent to my device.

Schedule Detail:

  • Name: android_test
  • Group: default

Schedule Pattern: One-Time Schedule Date and Time: 2023/10/23, 09:10 Time Zone: US/Pacific (UTC-07:00) Flexible Time Window: Off

Select Target: Amazon Pinpoint - SendMessages Input:

{
  "ApplicationId":"a4724e22e23b4f14b2be952e76d86a96",
  "MessageRequest":{
    "Addresses":{
       "c-adK3mLTsmefIyRe3Fxc4:APA91bGN74qRT86X2YLzMoQWzaXMmDM_Z8W03YE0Mx5aS3sUFj2HxUGf_VssArgTjGnV-BLKTQY_eDkfvtMnF53-afwdsh5eot_Js8oja08IU6rw4-GvQOH-tsAFmsUZov4eUz9UDKKo":{
          "ChannelType":"GCM"
       }
    },
    "Context":{
       "source":"MHC",
       "customKey":"customValue"
    },
    "MessageConfiguration": {
        "DefaultPushNotificationMessage": {
            "Body": "Test",
            "Substitutions": {
            },
            "Title": "Test",
            "Action": "OPEN_APP",
            "Url": "string",
            "SilentPush": false,
            "Data": {
            }
          }
      }
 }
}

Schedule State: Enable Action After Schedule Completion: NONE Retry: Off Encryption: Default Permissions: Use Existing Role Select Existing Role: eventbridge_scheduler Role Permissions: AmazonEventBridgeFullAccess Role Trust Relationships:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": "scheduler.amazonaws.com"
            },
            "Action": "sts:AssumeRole"
        },
        {
            "Effect": "Allow",
            "Principal": {
                "Service": "pinpoint.amazonaws.com"
            },
            "Action": "sts:AssumeRole"
        }
    ]
}
  • Where do you store the data of the users who've scheduled the push notification?

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions