Community

Community Forums

Where our customers, developers, and more can come together to help each other with both general and technical questions about our products and services.

Expire Web Notifications

Mike Lewis

Is there a way to expire web notifications? 

My support team is getting a lot of negative feedback from users about long queues messages waiting for then when the way their computers up from Sleep. Web notifications are coming from the API

Please sign in to leave a comment.

0
Avatar

Hi Mike,

You can expire web notifications sent via the API by using the time_to_live web override object in the request.

Below is an example payload:

{
"audience": "all",
"device_types": [
"web"
],
"notification": {
"alert": "This message will expire in 60 seconds.",
"web": {
"time_to_live": 60
}
},
"options": {
"expiry": 60
}
}
Kay Haskins 0 votes
Comment actions Permalink