SNS AWS in .NET C #

2

Has anyone implemented SNS in AWS with C #?

I've implemented the code below in an attempt to send a topic created by the console, but I need to do everything for our ADM in .NET.

Follow the code that I'm trying to upload by topic. It does not make a mistake, but for some reason it is not sending either. Would anyone know what's missing in it?

        RegionEndpoint regionEndPoint = RegionEndpoint.USEast1;
        IAmazonSimpleNotificationService snsClient = 
            AWSClientFactory.CreateAmazonSimpleNotificationServiceClient("#####","#######", regionEndPoint);

        PublishRequest publishRequest = new PublishRequest()
        {
            Subject = "teste",
            Message = "{\n\"APNS_SANDBOX\":\"{\\"aps\\":{\\"alert\\":\\"'sdfsdfsdfd'\\"}}\"\n}",
            TopicArn = "arn:aws:sns:us-east-1:###############",
        };

        snsClient.Publish(publishRequest);
    
asked by anonymous 26.04.2015 / 19:18

1 answer

0

I had to give subscribe to the devices

    
14.06.2016 / 20:25