I have developed an app, in which I implemented notification service. & I fixed time interval for notification (For example, I get notification for some updates but the update validity (ie) expire time is 15 min and after that time interval if user opens the notification then it should not intent to next activity and notification needs to be canceled).
In my app while pushing notification I use to send message along with update end time. By using end time how to manage notification without intent to next activity if end time expires