How Can I Set The Time-To-Live (TTL) For a Push Notification?
APNS (iOS)
{
"apns": {
"expiration": 1640995200,
"aps": {
"alert": {
"body": "Hello World!"
}
}
}
}FCM (Android)
"fcm": {
"time_to_live": 10000, # Number of seconds
"notification": {
"body": "Hello World!"
}
}Web Push
PreviousPublishingNextWhy Don't Fcm Notifications Trigger ‘onMessageReceived’ When In The Background State?
Last updated