Scheduled Messages
Schedule and send messages in the future.
schedule(send_at=Time, tag=Symbol)
schedule(send_at=Time, tag=Symbol)Platforms
Platform
Supported
Usage
On Demand
user = User.first
user.notification.text "You'll receive this after 1 minute"
user.notification.scheduled(Time.now + 1.minute)Send bulk
users = User.all
users.each do |user|
user.notification.text "This is an important announcement"
user.notification.template "main/announcement", {announcement_id: 1}
user.notification.scheduled(Date.tomorrow.to_time)
endReply
Params
Name
Description
Daemon
In Background
In Foreground
With the others processes from Kogno
Deleting and Re-Scheduling
destroy_scheduled_messages(tag=Symbol)
destroy_scheduled_messages(tag=Symbol)reschedule_message(tag=Symbol)
reschedule_message(tag=Symbol)scheduled_message?(tag=Symbol)
scheduled_message?(tag=Symbol)Last updated
Was this helpful?