Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Delete already sent Remote push notification with firebase in iOS?

I sending push notification to device but need to delete this already sent push notification after 1 hour. Can i achieve this anyway?

like image 540
Dharmesh Patoliya Avatar asked Sep 11 '18 17:09

Dharmesh Patoliya


1 Answers

Ohh. Nice question. You can cancel the schedule notification only and if its not already sent. if its already sent to user you can't do cancel.

However, if you want your push notification not to get seen by inactive users then you can set up an auto-expiration time in your notification, these notifications get deleted automatically after a certain span of time.

To implement this, time-to-live is set on Android as an expiration time in seconds, while on iOS it is set as an expiration date

like image 187
Mayur Jain Avatar answered Sep 27 '22 15:09

Mayur Jain