How can I send specific notification to a particular user using AWS SNS service. I am able to configure the application and code at iOS part to receive the sns notification but through SNS console.
How can I send and receive the notifcation from iOS only for specific users? I am not able to find any helpful demonstration on it.
Related
I am creating an app where in it requires to push notifications regarding the updated payment remittances of the user. How can I send the notification to the user when my backend is done dumping the latest payment remittances. What will be the trigger from the API to send notification to the user?
You should use APNS for delivery push-notification for iOS device.
For more info see https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html
When device is offline or not in network, then after getting network access it should receive all the undelivered notification messages. Is SNS taking care of this scenario or it depends on GCM/APNS/WNS services?
The SNS service uses its connections with GCM/APNS/WNS etc, to send push notifications to the mobile devices. It requires credentials from "Push notification Service Providers" in order to send the notification. The notifications are kept in a queue for certain period of time, and it is not guaranteed to be delivered if the SNS service fails to establish the communication with GCM/APNS/WNS.
Have a look at this to know more about working of SNS.
I am new to AWS SNS.I am trying to implement Amazon SNS push notification. I went through the documentation and perform all the APNS Prerequisite like:
iOS app registered with APNS
APNS SSL certificate
App private key
Device token
But problem is for sending notification document suggest that -
To send a notification to the iOS app on your device using the Amazon SNS console, see Using Amazon SNS Mobile Push.
To use the Amazon SNS API, see Send a push notification message to an iOS app using Amazon SNS and APNS.
I want to use Amazon SNS console to sent push notification, so how can use it and is it free?
Please guide me how can I do that.
I'm working with AWS SNS API for mobile notification,
along with AWS CloudWatch for message monitoring.
There's currently only 5 metrics to be watched:
NumberOfMessagesPublished
PublishSize
NumberOfNotificationsDelivered
NumberOfNotificationsFailed
SMSSuccessRate
None of these seems to be like message content, recipient platforms, or delivered date/time. (contents that make more sense to marketers rather than developers)
How could I query the history of all my sent messages or a specific message?
SNS does not retain sent messages. You would have to archive the sent messages yourself as you send them.
One idea is to let SNS itself do the message archiving for you, so that you can then query the archive for the analytics that are relevant to you.
This can be done by subscribing a Kinesis Data Firehose to the SNS topic that you use for sending these mobile notifications. You can configure your Firehose stream to store the SNS notifications in S3, Redshift, Elasticsearch, Datadog, Splunk, New Relic, or MongoDB.
Check this out: https://aws.amazon.com/about-aws/whats-new/2021/01/amazon-sns-adds-support-for-message-archiving-and-analytics-via-kineses-data-firehose-subscriptions/
SNS is a wrapper around a number of similar notification APIs. The APIs for Apple (APNS) and Google (Most Android) GCN don't offer any kind of receipt confirmation.
If you need receipt confirmation you would have to build that into the application on the mobile device to inspect messages received that were for that application and there is no universal way to do that either. The other issue is that you are totally at the mercy of the user authorizing notifications.
I suggest you incorporate messaging of your own inside the app and have push notifications as an optional enhancement. In order to get badges to work right you also need cooperation with the app since there is no way using SNS to react to actions taken in the app to clear the notifications or adjust the badge value.
In my iOS app I'm using parse.com as framework to send push notification. On server side we are using the parse.com rest API to generate a notification.
When I generate the notification by using this: https://www.parse.com/apps/(appName)/push_notifications/new the device receive the notification, but when I try to generate the notification by using the custom solution on my server the device doesn't receive any notification.
I looked on this page: https://www.parse.com/apps/(appName)/push_notifications and I saw the notification from API worked like the notification I ended from the parse service.
Why it doesn't work when I create the notification by my custom server?
Can you help me?
Thank you