Amplify, GraphQL, Pinpoint.
let params = AWSPinpointTargetingSendMessagesRequest()!
params.applicationId = _appid
params.messageRequest = nil
const sendMessagesParams = {
ApplicationId: process.env.PINPOINT_APP_ID,
SendUsersMessageRequest: {
Users: {
[whoReceive]: {}
},
MessageConfiguration: {
APNSMessage: {
Action: 'OPEN_APP',
Title: 'You have a new message',
SilentPush: false,
Body: content
},
GCMMessage: {
Action: 'OPEN_APP',
Title: 'You have a new message',
SilentPush: false,
Body: content
}
}
}
};
If you need help with understanding how to implement something in particular then we suggest that you first look into our developer guide. You can also simplify your process of creating an application, as well as the associated backend setup by using the Amplify CLI.