Search code examples
javascriptreactjsamazon-web-servicesreact-nativeaws-pinpoint

Send Push Notification from Web Application using AWS PinPoint


I have a react web application that assigns tickets and a react-native app for user to see their assigned tickets. I want to be able to send a push notification to the user when they are assigned a ticket. I'm looking through PinPoint JavaScript SDK, but having trouble seeing if I can do it. Has anyone been able to accomplish this?


Solution

  • I was able to accomplish this. You use AWS Amplify Analytics to put UserId or any attribute you want to be associated with a user. Then Use Pinpoint SDK to createSegment which attributes target the ones associated with the user. Then Pinpoint SDK to createCampaign for created segment. Hope this helps.