recurring_notification
This block will be executed when a user has granted or removed permissions to receive recurring notifications from Messenger.
recurring_notification(event=Enum(:granted, :removed), &block)
recurring_notification(event=Enum(:granted, :removed), &block)
Platforms
Platform
Supported
Messenger
Telegram
Recurring notification request
In order to make this event occurs, a notification request must be send to the user by calling the method recurring_notification_request()
.
Read more about Messenger recurring notifications in the official documentation.
Usage
Data param example
On permissions granted
On permissions removed
User's Subscription Status
The user's subscription status can be verified by calling the messenger_recurring_notification_data()
method in the User
model.
Sending Notifications
To send a notification using the recurring notification token, just call send_using_token()
method instead of send()
.
Last updated
Was this helpful?