I’m searching for a approach to expire(delete) the notification obtained on consumer system from drawer after sure time .
for iOS we will set apns-expiration
an unix epoch in future when to make this notification invalid and discard, discovered right here https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html
for android we will set time_to_live
in firebase message to run out a notification. discovered right here https://firebase.google.com/docs/cloud-messaging/concept-options#ttl
I perceive one factor
Each on apns-expiration
and time_to_live
on respective APNS and FCM platforms are used to say until when the platform has to retry to ship a particular message .
However my query is are these values additionally used to run out a notification obtained after that point is accomplished.
amplify node sdk accepts TimeToLive
which units apns-expiration for APNS message and time_to_live for FCM message doc discovered right here. https://docs.aws.amazon.com/AWSJavaScriptSDK/newest/AWS/Pinpoint.html#sendMessages-property
i’ve tried setting TimeToLive
in pinpoint.sendMessage params however the notification doesn’t get cleared on system.
Thanks prematurely.