By using AWS re:Post, you agree to the Terms of Use
/Amazon Pinpoint/

Questions tagged with Amazon Pinpoint

Sort by most recent
  • 1
  • 90 / page

Browse through the questions and answers listed below or filter and sort to narrow down your results.

Not able to send sms(Text messages) through api to USA region using csharp dotnet

We are actually trying to send sms(text messages) to US destination{.AmazonSimpleNotificationServiceClient}. from oregon region (Us west-2), in api call its showing successful but in aws console it shows failed. But we are able to send sms to mobile form mumbai region (APSouth) region using same api service. so all i got to know is we need an Origination ID to send sms txt messages to US destination. while requesting in excess limit it show only 10dlc option but not short codes. So even while creating an origination ID also i am facing issue. I have increased the usage limit in oregon region also. Below is the code i am using in api AmazonSimpleNotificationServiceClient snsClient = new AmazonSimpleNotificationServiceClient("access key", "secret key", Amazon.RegionEndpoint.USWest2); PublishRequest pubRequest = new PublishRequest(); // pubRequest.Message = message+ " is the OTP for your multi factor authentication.This code will expire in 10 minutes."; pubRequest.Message = message; pubRequest.PhoneNumber = mobileNo; // add optional MessageAttributes, for example: ////pubRequest.MessageAttributes.Add("AWS.SNS.SMS.SenderID", new MessageAttributeValue ////{ StringValue = "clicinsight", DataType = "String" }); // pubRequest.MessageAttributes AWS.SNS.SMS.SenderID"] = new MessageAttributeValue { StringValue = "...", DataType = "String" }; //pubRequest.MessageAttributes AWS.SNS.SMS.MaxPrice"] = // new MessageAttributeValue { StringValue = "0.50", DataType = "Number" }; pubRequest.MessageAttributes AWS.SNS.SMS.SMSType"] = new MessageAttributeValue { StringValue = "Transactional", DataType = "String" }; PublishResponse pubResponse = snsClient.Publish(pubRequest);
1
answers
0
votes
8
views
vivek
asked a month ago

Does Mobile Analytics still work?

I can see that tutorials and docs all suggest using Amplify for registering with Pinpoint, but I seem to have massive difficulty in getting it configured and working. I've downloaded the mobile analytics sdk and am using the following code: AWS.config.credentials = new AWS.CognitoIdentityCredentials({ IdentityPoolId: 'eu-west-1:xxx', Logins: { 'cognito-idp.eu-west-1.amazonaws.com/eu-west-1_xxx': result.getIdToken().getJwtToken() } }); app.mobileAnalyticsClient = new AMA.Manager({ appId : "xxx" // Pinpoint AppId }); console.log("creating mobile analystics client"); var p = app.mobileAnalyticsClient.startSession(); console.log("started mobile analystics session"); var q = app.mobileAnalyticsClient.createEvent('LoginEvent'); console.log("recording login event"); var r = app.mobileAnalyticsClient.submitEvents(); console.log("submitting mobile analystics events"); console.log("responses: " + JSON.stringify(p)); console.log("responses: " + JSON.stringify(q)); console.log("responses: " + JSON.stringify(r)); i dont get any errors in the log, but im not getting anything in my pinpoint console. creating mobile analystics client started mobile analystics session recording login event submitting mobile analystics events responses: {"eventType":"_session.start","timestamp":"2020-04-08T08:25:20.917Z","session":{"id":"213de044-d0d3-b844-83ca-e747b0ea3af0","startTimestamp":"2020-04-08T08:25:20.911Z"},"version":"v2.0","attributes":{},"metrics":{}} responses: {"eventType":"LoginEvent","timestamp":"2020-04-08T08:25:20.920Z","session":{"id":"213de044-d0d3-b844-83ca-e747b0ea3af0","startTimestamp":"2020-04-08T08:25:20.911Z"},"version":"v2.0","attributes":{},"metrics":{}} responses: \[]
2
answers
0
votes
3
views
LordVillage
asked 2 years ago
  • 1
  • 90 / page