amazon-sns

Amazon SNS URL works on browser but not from Android app

别来无恙 提交于 2019-12-13 05:35:14
问题 I made the url for amazon SNS. http://sns.ap-northeast-1.amazonaws.com? AWSAccessKeyId=***********&Action=CreatePlatformEndpoint&PlatformApplicationArn=arn%3Aaws%3Asns%3Aap-northeast-1%3A776188326341%3Aapp%2FGCM%2Fmyapplication& SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-03-20T23%3A08%3A26.601Z &Token=APA91bFN3NV_cBqPtqc6vUSYm8C6o9m5UMoUAvp3qM6WWPlef5s8G8__RNQi_AljpgTJEq-hWqF7iQYJ-4OXKiRJc1uz5JvzDIXfgWd_5AC08S_m0bOIIdcWW2cMZjAyH7PrXpSu2h9j &Version=2010-03-31&Signature=%2B

Show Cloudwatch alarms in Grafana

喜夏-厌秋 提交于 2019-12-13 03:52:10
问题 I want to add a table that shows a list of AWS Cloudwatch alarms for a particular metric. I found this dashboard AWS SNS but that just shows number of SNS messages sent. Is there any way of querying specific Cloudwatch alarms? 回答1: No, current Grafana code and current CloudWatch API doesn't support it. Of course, you can code it on your own. 来源: https://stackoverflow.com/questions/54952667/show-cloudwatch-alarms-in-grafana

AWS SNS - Push for GCM showing as sent from Cloudwatch but not received in Mobile Device

谁都会走 提交于 2019-12-13 03:37:30
问题 I am migrating from custom Push Notification to AWS SNS. I did the following. configured AWS SNS Topic Created Platform Application created Endpoints Suscribed endpoints to Platform Application I am trying the last step for Pushing the Notification using 'publish' API for Ruby. I receive the message_id as response. It also logs as success / delivered in CloudWatch. But the Push is not received in the device. The device is valid The device has a valid push token the device has the application

Unable to deliver TEXT message from sns console aws

不羁岁月 提交于 2019-12-13 02:59:34
问题 I'm trying to send text message from SNS console from the supported region list: US East (N. Virginia),US West (Oregon) EU (Ireland) Asia Pacific (Tokyo) Asia Pacific (Singapore) I tried with all above region but got the below response: { "notification": { "messageId": "2deeb7d5-fc63-5353-962d-e56549411e4b", "timestamp": "2017-12-17 18:09:38.321" }, "delivery": { "destination": "+919860694302", "smsType": "Promotional", "providerResponse": "Internal error", "dwellTimeMs": 41 }, "status":

Android GCM Push notifications not received on some latest OS (Oreo and Pie)

纵饮孤独 提交于 2019-12-13 02:27:28
问题 We're using GCM for push notification for our app with target release to 26. But on some devices with OS(Oreo and Pie) notifications are not received. We have implemented push notification channels as well.For mostly users it worked but some users face this issue. Details: Play services GCM version: 11.0.4 compileSdkVersion 26 targetSdkVersion 26 Any help would be appreciated. Thanks 来源: https://stackoverflow.com/questions/54017617/android-gcm-push-notifications-not-received-on-some-latest-os

AWS-PHP-SDK / SNS direct addressing returns error

纵然是瞬间 提交于 2019-12-12 19:19:19
问题 Hi I am using Laravel 4 setup to make use of AWS SNS to send a push message to my iOS device, the publish command to my device works well from AWS console. I then tried from PHP: $sns = AWS::get('sns'); $sns->publish(array( 'Message' => 'Hello from PHP', 'TargetArn' => "arn:aws:sns:us-west-2:360542326270:endpoint/APNS_SANDBOX/Testtest/20a75cd1-da25-3331-8126-4db497cbdd5e" )); I am getting Guzzle \ Service \ Exception \ ValidationException Validation errors: [TopicArn] is a required string:

AWS SNS publishing to a subscribed Lambda function logs null fields

心已入冬 提交于 2019-12-12 08:51:00
问题 Tried to post this to the AWS Forums, but it seems my account is "not yet ready", whatever that means. I've setup an AWS Lambda function (written in Java) that accepts a POJO in order to allow for automatic deserialization of JSON. The test JSON I am using is below and represents the JSON string that will be sent from the ultimate source of the message once everything is up and running. {"sender":"Joe", "id":1, "event":"started", "ticks":2, "time":"20150623T214256Z", "version":"1.0"} This

Amazon SNS Mobile Push - how to bulk subscribe endpoints to a topic?

可紊 提交于 2019-12-12 07:31:48
问题 I am trying to move my existing iOS push notification infrastructure over to amazon SNS mobile push. I exported all my tokens from my local db into an SNS application (using CSV). Now I want to send push notification to all my 10,000 users. I think the only way is to create a topic and subscribe all the users to that topic then publish message to that topic. Is there any easy way to subscribe all the 10,000 users who I have imported into the system to a topic? Thanks for any help! 回答1: It

AWS CloudFormation for Lambda and SNS Topic

北城以北 提交于 2019-12-12 06:48:28
问题 I have a cloud formation script which I am using to create a Lambda and SNS Topic. Here is the yml script for SNS Topic and Lambda creation, SampleSNSTopic: Type: AWS::SNS::Topic Properties: DisplayName: sampleTopic TopicName: sampleTopic SampleLambdaFunction: Type: AWS::Lambda::Function DependsOn: SampleSNSTopic Properties: Handler: index.handler Description: Sample Lambda function FunctionName: TestFunction Role: !Ref SomeRole Code: ZipFile: !Sub | var AWS = require("aws-sdk"); exports

Amazon SNS GCM/FCM message payload

我是研究僧i 提交于 2019-12-12 03:34:21
问题 I am trying to send a push notification (PN) from my application server to an android device using publish end point in the Amazon SNS console with this message and message structure as json it works fine. { "GCM": "{ \"notification\": { \"text\": \"test message\" } }" } But when I try to implement the same in Java it the device does not receive the notification. PublishRequest publishRequest = new PublishRequest(); publishRequest.setTargetArn("arn:aws:sns:ap-south-1:818862955266:endpoint/GCM