Scheduled notifications using AWS SNS

I am developing an iOS application using AWS for the first time. Most things are straightforward, but I'm having trouble finding out how to plan an alert in the future. I am currently using AWSSNSPublishInput to send push immediately, but there seems to be no way to schedule a notification for some time in the future. I would just use UILocalNotification to plan for a future notification, but I need to schedule a notification for another user.

For example, user A performs an action that user B should know the next day.

Does anyone have any ideas?

+4
source share
1 answer

Amazon Simple Notification Service (SNS) is designed to send notifications immediately. There are no functions for scheduling notifications in SNS.

Amazon Simple Queue Service (SQS) has a delay function, but only up to 15 minutes - this is useful if you need to do some work before processing a message, for example, copying related data to Amazon S3.

Given that you need to schedule a notification for some future time. you need to implement server-side logic, for example, polling a database at a fixed fixed time interval OR something like a task scheduler .

+1
source

Source: https://habr.com/ru/post/1671277/


All Articles