My application sending push notifications from the server to several user devices. Notification will valid for a certain time period in my app scenario. currently, all notifications go through my app, but I don't send this at all after given expiration time. Code to send on a user.
{
"to":"REGISTRATION_ID", // "to" replaces "registration_ids"
"notification": {
"title": "Portugal vs. Denmark”,
"body”: "5 to 1”
},
"time_to_live":"600"
}
Note: "time_to_live" attribute not works.